Retrospective Treasure Book of Selection of Gold, Nine Silver and Ten JS

Links to the original text: https://juejin.im/post/5d77acb66fb9a06af50ff525 Preface In this golden ninety silver ten days, we present a JS selected review pamphlet for you, I hope you will laugh! this for normal functions and arrow fun ...

Added by Tedglen2 on Thu, 12 Sep 2019 04:55:50 +0300

Advanced Programming of javaScript--Chapter 6 of Notes

Object-Oriented Programming Understanding objects There are two ways to create objects: First: Create an Object object and add attributes and methods to it var person = new Object(); person.name = "Nicholas"; person.age = 29; per ...

Added by Hodo on Thu, 29 Aug 2019 11:37:40 +0300

Inheritance in js

There are two ways of inheritance: interface inheritance and implementation inheritance. Interface inheritance only inherits method signatures, while implementation inheritance inherits the actual method.Because the function has no signature, interface inheritance cannot be implemented in ECMAScript. ECMAScript only supports implementation of i ...

Added by linux_pickle on Tue, 02 Jul 2019 00:09:44 +0300

20170607 - Object Oriented 01 - Object Creation

create object 1.Object constructor Create an instance of Object by adding attributes and methods to it (the pattern for creating objects early) var person = new Object(); person.name = "Nicholas"; person.age = 29; person.job = "Software Engineer"; person.sayName = function(){ alert(this.name); } 2. Object literals var person = { name: ...

Added by metkat on Tue, 25 Jun 2019 00:47:29 +0300

js Advanced Course Reading Notes Chapter 5 - Reference Types (5.6)

Internal attributes of functions There are two special objects in the function. arguments: It contains all the parameters, and the important thing is that it has an attribute called callee, which is used to point to a function that has this parameter. What are the benefits? Example: function fa(num){ if(num<=1){ return 1; }else ...

Added by usamaalam on Thu, 06 Jun 2019 21:17:00 +0300

JS inherits this

ECMAScript implements inheritance in more than one way. This is because the inheritance mechanism in JavaScript is not explicitly prescribed, but implemented through imitation. This means that all inheritance details are not entirely handled by interpreters. Suitable ways of inheritance can be determined according to the needs.Original link ...

Added by hmiller73 on Sun, 19 May 2019 21:30:28 +0300

An in-depth guide to JavaScript prototypes

Summary: Understand prototype. Original: An in-depth guide to JavaScript prototypes Author: Front end wit Fundebug Copyright shall be owned by the original author when authorized to reproduce. You can't go far in JavaScript without learning how to handle objects.They are the basis for almost every aspect of the JavaScript programming langua ...

Added by webzyne on Thu, 16 May 2019 03:41:26 +0300

Front-end api request caching scheme

In the development of web applications, performance is an indispensable topic. For web packaged single page applications, there are many ways to optimize performance, such as tree-shaking, module lazy loading, and using extrens network cdn to accelerate these conventional optimization. Even in the vue-cli project, we can use the -- modern instr ...

Added by sstoveld on Wed, 15 May 2019 11:10:25 +0300

Number(),parseInt(),parseFloat()

There are three functions for converting non-numerical values into numerical values: Number (), parseInt (), and parseFloat (). Note tip: Number() can be used for any data type; parseInt(),parseFloat() is for strings; Number() conversion rules are as follows: give some special examples; The first category: null, undefined console.log(Number(nu ...

Added by AngelGSD on Tue, 14 May 2019 19:54:41 +0300