JavaScript Object-Oriented Encapsulation (demo by ES5, ES6, TypeScript)

By default, you have read the author's previous article. JavaScript Object-Oriented Abstraction Why encapsulate? Encapsulation is to hide the internal attributes and methods of an object. External code can only access the object through a specific interface, which is also part of the idea of Interface-oriented programming. Encapsulation is a ve ...

Posted on Wed, 26 Dec 2018 16:03:07 -0800 by bruceleejr

Express Learning Notes Pure Dry Goods (Routing, Middleware, Hosted Static Files, Viewengine, etc.)

Links to original articles: http://www.lovebxm.com/2017/0... 1. Express Profile Express is a fast, open and minimal web development framework based on Node.js platform. It provides a series of powerful features to help you create various Web and mobile applications. Express does not re-abstract the existing features of Node.js, but only extends ...

Posted on Wed, 26 Dec 2018 13:30:06 -0800 by TheRealPenguin

js deeply understands the usage of forEach map every some filter reduce and the browser source code implementation

Preface These methods are the most commonly used and cost-effective methods in js5. If you use them skillfully, you can simplify a lot of code, improve the readability of code, and you can call them in a chain way. Nonsense, let's start! Preface forEach forEach example Explanation for Each Implementation of Source Code f ...

Posted on Mon, 24 Dec 2018 16:48:06 -0800 by RealDrift

Comparative Selection of CSS Preprocessors (Sass&Less&Stylus)

CSS preprocessor defines a new language. Its basic idea is to use a special programming language to add some programming features to CSS. CSS is used as the target to generate files. Then developers only need to use this language to code. Generally speaking, the CSS preprocessor uses a special programming language to style Web pages, and then ...

Posted on Sun, 23 Dec 2018 09:18:06 -0800 by nosheep

Number type, String type, Global object, Math object summary in JavaScript

http://blog.csdn.net/bboyjoe/article/details/51532319 Number type valueOf(): Returns the value of the basic type represented by the object. toString(): Passes a parameter representing the cardinality, telling it to return the string form of a numeric number of decimal digits. var num=10;   console.log(num.toString());/ ...

Posted on Sat, 22 Dec 2018 02:00:06 -0800 by Unseeeen

Simple login registration based on Node.js+express+MySQL+Bootstrap

Starting with node.js and express framework, I want to build a simple registration function on the server side using express. Then I begin to describe the idea briefly and attach the implementation code (the code has detailed annotations, learning and implementing in the order of the following modules). Bootstrap-base ...

Posted on Fri, 21 Dec 2018 13:54:06 -0800 by SumitGupta

JS and OC call each other under iOS (4) > JavaScript Core

The way to intercept URL s to implement JS and OC calls to each other is discussed earlier, and finally it's JavaScript Core. It has been added since iOS 7, encapsulating WebKit's JavaScript engine with Objective-C, providing a simple and fast way to interact with JavaScript. There are two good articles about the use of JavaScript Core:Chinese ...

Posted on Fri, 21 Dec 2018 07:03:05 -0800 by lnenad

Vue 2.0 Based on vue-cli+webpack Vuex Usage

Before that, I have shared the communication mechanism between components and between parent and child components, and our vuex is to solve the problem of component communication. What is vuex? The essence of component communication is to transfer data or component state between components (data and state are collectively referred to as state) ...

Posted on Thu, 20 Dec 2018 20:03:05 -0800 by remnant

JS introductory tutorial - 14-js HTML DOM, DOM element search method, JS operation on HTML

Catalog Catalog HTML DOM DOM TREE JS Operation on DOM Search for DOM elements According to ID According to the label name According to Name According to class Getting HTML elements Get the body element Common methods for mobile terminals (incompatible under IE6-8) Changes to HTML Changing HTML output stream Changing ...

Posted on Thu, 20 Dec 2018 17:27:05 -0800 by gapern

Query Task of ArcGIS API for Js

Query Task of ArcGIS API for Js Implementing Functional Description Understand the relationship between Query and Query Task Implementing Relevant Queries for Publishing Layer Attribute Information Relevant Visual Display Based on 3D Symbol and Information Template Pop-up Relevant mechanisms of dojo/_base/array Code for implementation ...

Posted on Thu, 20 Dec 2018 12:36:05 -0800 by robertaccettura