JavaScript -- data type, function, array, string

1, Data type (1) Data type JavaScript variables can hold a variety of data types: numeric values, string values, arrays, objects, and so on: var length = 7; // number var lastName = "Gates"; // character string var cars = ["Porsche", "Volvo", "BMW"]; // array var x = {firstName:"Bil ...

Posted by jamess on Sun, 16 Jan 2022 13:00:43 +0100

bootstrap front-end development, use of CSS inline style

**1, * * background color Attribute name: background colorFunction: add background color decoration in the box areaLoading area: load the background color within the borderAttribute value: color name, color value <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="wi ...

Posted by mr_tron on Sun, 16 Jan 2022 12:06:40 +0100

vite source code sorting

brief introduction Vite has four commands: dev | build | optimize | preview. This paper combs the whole process of vite and briefly splits the main steps of dev | build, so as to facilitate everyone's understanding of vite source code as a whole. You are welcome to correct any mistakes. start-up The two default commands of vite project npm r ...

Posted by vitalyb on Sun, 16 Jan 2022 11:54:44 +0100

js event operation syntax

1, Event binding syntax Grammatical form 1 Event listener} tag object addEventListener('click',function(){}); Grammatical form 2 The on syntax binds the} label object onclick = function(){} On syntax is an event processing function bound by = equal assignment. In essence, the = equal assignment performs the overwrite assignment. The ...

Posted by dclamp on Sun, 16 Jan 2022 11:36:34 +0100

web development course, JavaScript naming identifier specification

Get geographic location information using HTML5 How to use HTML5 geolocation For example, geoml5 supports more precise location functions on modern handheld devices, especially HTML5. First, we need to check whether the user's device browser supports geographic positioning, and if so, obtain geographic information. Note that this feature may ...

Posted by Gregadeath on Sun, 16 Jan 2022 10:32:27 +0100

web development course training, css pseudo element selector

Four positioning methods of CSS layout 1. static: Default value. Without positioning, the element appears in the normal flow (ignoring the top, bottom, left, right or z-index declarations). Refer to the previous essay. 2. relative: The element positioned as relative deviates from the normal document flow, but its position in the document fl ...

Posted by xxxxxx on Sun, 16 Jan 2022 06:28:40 +0100

On the process of optimizing picture matting with canvas

Premise: the work involves IPTV Set-top Box EPG development business. Normal IPTV Set-top Box video playback calls the Mediaplayer component encapsulated by the manufacturer, which is different from ordinary video playback. The rendered video window belongs to the underlying rendering of Android system, and the html page element is not a layer. ...

Posted by dmyst3 on Sun, 16 Jan 2022 04:33:14 +0100

META tags for common SEO optimization

Before right meta The understanding of the label is only <meta charset="UTF-8"> And mobile end palatability <meta name="viewport" content="width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/> form The meta tag has two attributes: http equiv attribute and name attribute 1. name att ...

Posted by groovything on Sun, 16 Jan 2022 03:26:03 +0100

Front end learning record CSS selector, common methods and box model

CSS selector CSS selectors are usually used to control the overall style of elements in web pages (< body >), written under the < style > < / style > tag in the < head > < / head > tag Common CSS selectors can be arranged as follows according to priority: ! Important > inline style > ID selector > class ...

Posted by lulubell on Sat, 15 Jan 2022 23:48:20 +0100

What are the web development technologies, html5 data visualization

preface Although there are mature and useful libraries for dealing with dates, such as momentjs and date FNS, sometimes we don't need the whole library in actual development. Therefore, I have sorted out various operations on date and time in front-end development, which is relatively complete. Some of them come from ourselves and some from ou ...

Posted by sethadam1 on Sat, 15 Jan 2022 22:18:22 +0100