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

Let the python bottle framework support requests such as jquery ajax RESTful-style PUT and DELETE

In these two days, the background management system is developed with python bottle framework. The interface agreement uses RESTful style requests. The front end uses jquery ajax to interact with the interface. Both POST and GET requests are normal, while Request Method directly explodes "HTTP Error 405: Method Not Allowed" error when ...

Posted on Wed, 19 Dec 2018 16:24:05 -0800 by jaapoost

17 - A Brief Analysis of Compoile Flow of Web Pack Source (1) - Entry Function run

The flow chart of this section is as follows: Now we formally enter the packaging process, starting with run: Compiler.prototype.run = (callback) => { const startTime = Date.now(); const onCompiled = (err, compilation) => { /**/ }; this.applyPluginsAsync("before-run", this, err => { if (err) return callback(err) ...

Posted on Tue, 18 Dec 2018 21:03:04 -0800 by SleepyP

2 - Analysis of the application CAITON module of express source code (2)-app.render

This module also omits a slightly more complex API, app.render. First, look at the definition of the official website:   app.render(view, [locals], callback) view is the corresponding file name, locals is a configuration object, and callback is the callback function of parsing. The global attributes involved are view: Default as a built-in mo ...

Posted on Tue, 18 Dec 2018 17:15:04 -0800 by FunkyELF