Knowledge Summary of es6--4

ES6 classes We often use object-oriented method to create instances in programming, but es6 encapsulates a class class class for me.Let me introduce you below. Ecmascript 5 method //Everything is an object. //1. Classes are generalizations of objects (abstractions) //2. Objects are created by classes //3. Specific instan ...

Posted by fangorn on Wed, 12 Jun 2019 12:25:08 -0700

15 common JavaScript string manipulation methods

1 Initialization //Common Initialization Methods var stringVal = "hello iFat3"; //Constructor Creation Method var stringObj = new String("hello iFag3"); 2 length attribute var stringVal = "hello iFat3"; //Output 11 console.log(stringVal.length); 3 charAt() Returns the character at a given position var stringVal = "hello iFat3"; //Output e conso ...

Posted by karnetics on Sat, 08 Jun 2019 11:20:42 -0700

javascript Advanced Programming Chapter 6 Object-Oriented Programming

6. Object-Oriented Programming 6.1 Understanding Objects 6.1.1 Attribute Type There are two kinds of attributes: data attributes and accessor attributes. js engine, js can not be directly accessed. Four characteristics describing their behavior. Can [[Configurable]] redefine attributes by deleting attributes, modify attributes, or mo ...

Posted by uramagget on Tue, 04 Jun 2019 12:29:38 -0700

JavaScript Chapter for Front-end Development

Introduction to JavaScript The front-end three swordsmen's JavaScript, referred to as js, may be the most difficult of the three. Long ago, there were three versions of JS in circulation on the market. In order to unify, ECMA (European Computer Manufacturing Association) defined the standard version, namely EcmaScript. In fact, ECMAScript is ...

Posted by VinzC on Tue, 04 Jun 2019 11:35:23 -0700

[Front-end Knowledge Points] Details js variables, scopes and memory

The basic type values are undefined, NUll, Boolean, Number and String, which occupy a fixed size space in memory, and their values are stored in stack space, which we access by value. (1) Value type: numerical value, Boolean value, null, undefined. (2) Reference type: object, array, function. If you assign a value of a reference type, yo ...

Posted by mithril on Sun, 26 May 2019 12:14:10 -0700

Use Flow to detect your JS

Recently, I saw an introduction about Flow in an article. I think it's very good. Although it's easy to use Typescript in a project before, it's a bit cumbersome to use Flow again, but it's always right to learn more. brief introduction JS, as a scripting language, has no type checking. This feature is sometimes used very well, but when you are ...

Posted by Harry57 on Sat, 18 May 2019 15:58:25 -0700

Advanced JavaScript Programming (3rd Edition) Reading Notes Chapter 6 Object-Oriented Programming

Object-Oriented (OO) languages have a flag that they all have the concept of a class through which any number of objects with the same properties and methods can be created. There is no class concept in ECMAScript, so its objects are different from those in the language of the base class. ECMA-262 defines an object as "a collection of dis ...

Posted by cshaw on Sat, 18 May 2019 12:37:07 -0700

Learn to Make Wheels Together (1): Write a Promises/A+compliant promise from scratch

This article is the first in a series of wheels. We will start from scratch to write a promise that meets the Promises/A+specification. This series of articles will select some of the more classic front-end wheels for source code analysis and gradually implement them from scratch. This series will learn Promises/A+, Redux, react-redux, vue, do ...

Posted by insrtsnhere13 on Fri, 17 May 2019 01:52:45 -0700

Javascript Object-Oriented Programming

Recently, because a primary school students to make learning plans, so also record some knowledge points, easy for the students behind the learning exchange. This article is about object-oriented programming of Javascript. It is mainly introduced in three aspects: 1. Understanding object properties; 2. Understanding and creating objects; 3. Und ...

Posted by cyclops on Tue, 14 May 2019 23:31:21 -0700

BOM - Browser Object Model

1. The JavaScript component: ECMAscript (Core Standard): Defines basic grammar, such as if for array strings. 2.BOM: Browser Object Model 2. Components of BOM: 1. Each subwindow of a window object corresponds to another window object.2. screen object3.location object4.history object5.Navigator object6. Timers (two)7. Bullet Frame (Three Kinds)8 ...

Posted by Runilo on Fri, 10 May 2019 08:40:39 -0700