JavaScript basic knowledge series the most detailed interpretation in the history of This

This in js is an old topic. This article is probably the most comprehensive interpretation of this. Take a closer look. 1. First of all, we should understand the concept of objects in js. We say that js objects are roughly divided into dom objects and bom objects, that is, html pages are called objects, browsers are called objects, and the obj ...

Posted by morganchia on Tue, 08 Feb 2022 12:12:17 +0100

JavaScript expressions and operators

Addition assignment (+ =) The addition assignment operator (+ =) adds the value of the right operand to the variable and assigns the result to the variable. The type of the two operands determines the behavior of the addition assignment operator. Addition or concatenation is possible. let a = 2; let b = 'hello'; console.log(a += 3); // addit ...

Posted by harshilshah on Tue, 08 Feb 2022 11:15:56 +0100

Build component library from 0 to 1

brief introductionFrom implementing the basic architecture of the project - > supporting multi specification packaging - > implementing on-demand loading - > publishing npm packages, take you to build component libraries from 0 to 1.Construction projectInitialize project directorymkdir lyn-comp-lib && cd lyn-comp-lib && ...

Posted by Gokul on Tue, 08 Feb 2022 05:50:32 +0100

Front end Ajax sprouting new beginner documentation

preface This article introduces you to what Ajax is The following is the main content of this article. The following cases can be used for reference 1, What is Ajax? Ajax itself is not a technology. Ajax is a way to change the data interaction between web application and server by using JavaScript script (asynchronous loading of pa ...

Posted by sumday on Tue, 08 Feb 2022 03:48:53 +0100

Big data visualization case based on ECharts -- Analysis and implementation of epidemic data in China

**1. Tool introduction ** Tools required for this case (including but not limited to): vscode (code editor), node JS (various plug-in download tools), China js,echarts. min.js,juquery. Min.js, etc. (official. JS plug-ins related to JavaScript), IDEA (all code can be written here) Languages and other technologies involved: html5+css+JavaScript ...

Posted by amites on Tue, 08 Feb 2022 02:14:46 +0100

GUI programming --- Snake game development

① First knowledge theory Frame: the time slice is small enough = "is the animation, 1 second 30 frames. Connect is animation, open is static picture! Keyboard monitor Timer timer ② Game development ideas (define data, draw a panel, and listen for events (keyboard / event)) 1. First of all, a game main startup class, StartGame class, in ...

Posted by MikeUK on Tue, 08 Feb 2022 00:00:51 +0100

javascript in web front end -- the use of DOM

Common concepts Composition of JavaScript JavaScript foundation is divided into three parts: ECMAScript: Syntax Standard for JavaScript. Including variables, expressions, operators, functions, if statements, for statements, etc. DOM: Document object Model, an API for manipulating elements on Web pages. For example, let the box move, change ...

Posted by brmcdani on Mon, 07 Feb 2022 14:03:20 +0100

Inter component value transfer proxy server slot vuex route is loaded on demand

1. First, use steps of components: Using nano id s to generate unique IDs is lighter than UUIDs 1. Create components vue file, component name name (initial capital) 2. import Student from "./components/Student.vue" (under the script tab) 3. Register component: the name attribute of the current component is equal to the date attrib ...

Posted by dastaten on Mon, 07 Feb 2022 12:52:12 +0100

Implementation of one-way linked list of javaScript data structure and algorithm

introduction Recently, I am learning the data structure of javaScript. Linked list and array in javaScript can play a complementary relationship. Some complex data structures are suitable for array implementation (such as stack), while others are more suitable for linked list implementation (such as queue). Today, I will study the implemen ...

Posted by DamienRoche on Mon, 07 Feb 2022 11:37:27 +0100

Several methods of detecting data class

There are four ways to detect data types typeof,instanceof,constructor,Object.prototype.toString.call(),jquery.type() typeof console.log( typeof 100, //"number" typeof 'abc', //"string" typeof false, //"boolean" typeof undefined, //"undefined" typeof null, //"object" typeof [1,2,3], //"object" typeof {a:1,b:2,c:3} ...

Posted by ahzulfi on Mon, 07 Feb 2022 10:04:16 +0100