Common methods for arrays - (Regret series aside, what novices need to know)
Common methods of arrays
Array.length
length is an instance property of Array that returns the number of elements in the array and is always greater than the subscript of the last item in the array
let arr = [1, 2, 3, 4]
console.log(arr.length) // 4
indexOf
indexOf('ele',fromIndex) Parameter 1: Elements of the query Parameter 2 (optional) ...
Posted by xionfoo on Wed, 29 Sep 2021 09:58:02 -0700
ES6 - object extension
1. Concise representation of attributes
(1) Properties and methods
/*It is allowed to directly use variables inside the object (i.e. attribute and attribute value variables are consistent, which can be abbreviated)*/
let name='Zhang San';
let stu={
name,
//Equivalent to
//name:name
sleep(){},
...
Posted by Dingbats on Tue, 21 Sep 2021 01:41:12 -0700
JavaScript anti shake & throttling
Anti chattering and throttling are events that prevent high frequency triggering
Anti shake, generally used in
Onresize event (onresize: execute Javascript code when the browser is resized)
oninput event: triggered upon user input.
If the event is triggered with high frequency, it is likely to cause the server to crash
Then you can use the ...
Posted by Bleej on Thu, 16 Sep 2021 11:07:33 -0700
HTML+CSS+Bootstrap+ECMAScript+DOM
Scripting language: it can be parsed and executed by the browser without compilation
Overview of Wed concept
JavaWed:
Using java language to develop Internet based projects
Software architecture:
1. C/S: Client / Server
* There is a client program locally and a server program remotely
* For example: QQ,Thunder...
* Advantage ...
Posted by Mightywayne on Mon, 06 Sep 2021 11:45:00 -0700
Chapter 1 JavaScript foundation [cloud smart link]
Chapter 1 JavaScript Basics
1. What is JavaScript?
HTML+CSS completes the static page display, but to complete better and more complex user interaction and data interaction and display, you need to use JavaScript. JavaScript is an object-based and event driven scripting language with security performance
2. Features of JavaScript
a. You can add ...
Posted by glitch003 on Sat, 27 Jun 2020 22:26:06 -0700
JS event, Bom object and Dom object (Le byte Architecture)
If you want to be a good java Architect, here → Le byte free open class (Tencent class)
If you need to follow more information, please click on the right side (remember the password: 66) → This is a no return road, there is a risk of baldness, please choose carefully!
BOM objects
The core object of BOM is window, which represents an i ...
Posted by R_P on Fri, 26 Jun 2020 00:52:21 -0700
VSCode installation, ECMAScript 6 syntax
Article catalog
Front end development
VSCode
Initial settings
1. Chinese interface configuration
2. Plug in installation
3. Create project
4. Save workspace
5. New folders and pages
6. Preview web page
7. Set font ...
Posted by VisionsOfCody on Sat, 13 Jun 2020 01:59:37 -0700
es6-ES6 Concepts & New Grammar & Extension of Built-in Objects
ES6 Syntax
target
Ability to say the characteristics of using let keywords to declare variables
Ability to extract values from arrays using deconstruction assignments
Ability to say what an arrow function has
Ability to receive remaining function parameters using remaining parameters
Ability to spl ...
Posted by magicmoose on Thu, 11 Jun 2020 19:24:50 -0700
Deep understanding of objects in JS: how class works
catalog
preface
class is a special function
How class works
Prototype chain relation of class inheritance
reference resources
1. Preamble
The JavaScript class introduced in ECMAScript 2015 (ES6) is essentially the existing prototype based inherited syntax sugar of JavaScript. Class syntax does not introduce a new object-oriented in ...
Posted by bguzel on Mon, 18 May 2020 19:24:52 -0700
Use JQuery to send a request to refresh the page locally
json
What is JSON
JSON(JavaScript Object Notation) is a lightweight data exchange format. It is based on ECMAScript A subset of. JSON uses a completely language independent text format, but also uses habits similar to the C language family (including C,C++,C#,Java,JavaScript,Perl,Python Etc.). These features make JSON an ideal data exchange l ...
Posted by salathe on Thu, 07 May 2020 08:21:37 -0700