On the fourth day of JavaScript, function parameters are passed, function declarations and calls with parameters, formal parameters and arguments, and arrays

Parameter list: a list of data to be passed in. To declare this function, you need to pass in several data, which are separated by commas function getSum(num1,num2){document.write(num1+num2)} getSum(10,20) When calling a function, you need to write several data, separated by commas Formal parameters: the parameters written in the parentheses ...

Posted by surfinglight on Fri, 08 Apr 2022 06:26:55 +0300

Still using the timer? CSS can also realize electronic clock

Usually we need to make a clock, which must be inseparable from JS timer. Today, let's change our thinking and use CSS to realize a clock, as follows:You can also access this CSS time (codepen.io) See the actual effectOf course, I borrowed a little JS for initialization time. The whole clock is run by CSS. There are many tips you may not know. ...

Posted by bcoffin on Wed, 06 Apr 2022 07:03:06 +0300

Ecarts data visualization project

Introduction to visual panel In response to the current trend of data visualization, more and more enterprises need to use visual charts to display and reflect the data in many scenarios (marketing data, production data and user data), so as to make the data more intuitive and highlight the data characteristics. 01 - using technology The fol ...

Posted by PhpDog on Tue, 05 Apr 2022 06:43:16 +0300

2021 JavaScript Design Pattern Learning chapter 29 - Middleware

(Middleware), also known as the intermediary layer, is the software that provides the connection between system software and application software to facilitate the communication between software components, especially the centralized logic of application software for system software. Middleware represents various software suites in the enterpri ...

Posted by roba59 on Sat, 02 Apr 2022 16:33:05 +0300

CSS document flow, floating and positioning (beginner)

Document flow Document flow refers to the position occupied by the labels in the document when they are arranged. Divide the form into one line from top to bottom, and arrange labels in each line from left to right, which is the document flow. Document flow refers to the default order of tags in web pages. In other words, in the document flo ...

Posted by MishaPappa on Fri, 01 Apr 2022 21:58:40 +0300

CSS advanced skills / CSS user interface style + vertical align attribute application + common layout skills

catalogue CSS user interface style Change mouse style cursor Form outline Prevent dragging text field resize Vertical align attribute application Realize the vertical centering of inline blocks and text Solution to the blank gap at the bottom of the picture Overflow text ellipsis display         1. Single line tex ...

Posted by madmax on Fri, 01 Apr 2022 16:33:40 +0300

Three.js realize 3D Open World Games: Ali's multiverse 🦊

Statement: the pictures and model materials involved in this article are only used for personal learning, research and appreciation. Please do not modify, illegally spread, reprint, publish, commercialize or engage in other profitable activities.backgroundKepler 1028 galaxy, 2545 light-years away, has a colorful and livable planet 🌑, Interstel ...

Posted by Travis Estill on Fri, 01 Apr 2022 04:06:32 +0300

Basic javaScript syntax learning

1, Introduction to offset, client and scroll families 1.1 overview of offset Offset translates to offset. We can dynamically get the position (offset) and size of the element by using the relevant attributes of offset series. Gets the distance of the element from the position with the positioning parent elementGets the size (width, height) o ...

Posted by TaosBill on Wed, 30 Mar 2022 11:02:50 +0300

SVG draws adaptive diamond

Welcome to my official account: front-end detective.Recently, I saw such a problem in a thought: it is necessary to draw a diamond with adaptive size and a border. It is generally very common in the flow chart, and the effect is as followsIf there is no border, use CSS clip-path It is also very convenient to cut out a diamond, but the border is ...

Posted by hanpedro on Mon, 28 Mar 2022 06:28:30 +0300