This digest from Nanyi Teacher's "ECMAScript 6", original address: http://es6.ruanyifeng.com/#docs/introECMAScript 6 is a generic term that means the next-generation standard for JavaScript after the 5.1 version, covering the ES2015, ES2016, ES2017
1.with Statement throws Error2. An undeclared variable is assigned a value error3.arguments becomes static in strict mode, the parameters passed in are not related to arguments4.delete will error5. Duplicate attribute name of object will be error6.
Tag: Time () No State defines how many console functions the size pageThe timer in JavaScript everyone has met in the normal development, but how many people to deeply understand the principle of it? Let's analyze the implementation principle of the
Gets the length of the character in the input box for form validation, and when the input is in English, the character length is 1, and when the Chinese is entered, the character length is 2.The number of characters is 4~16 bit,:One Chinese to two
This study focuses on basic JavaScript syntax, data structureWhether it is a traditional programming language or a scripting language, there are basic elements such as data types, constants and variables, operators, expressions, comment statements,
Script> varrangelist=Document.queryselectorall ('[type= "range"]'); for(varI=0; Irangelist.length; I++){ //get the value I traversed in the current period and assign a value to range varRange=Rangelist[i]; Range.onchange=function(){
Each programming linguistics to the array, will talk about the sorting algorithm, when learning C language, card in the sorting algorithm. today, Let's summarize how three sorting algorithms are implemented in Javascript.1. Bubble sort (default
Deferred source code analysis of jQuery and jquerydeferred source code
I. Preface
About the summer, we talked about ES6 Promise. In fact, jQuery had Promise before ES6, which is the Deferred object we know. The purpose is of course the same as ES6
Simple understanding of js Bubble sorting and js Bubble Sorting
Concerning Sorting, no matter which language actually has its built-in sorting function, we can call it when we use it. In this case, why should we talk about this? I think, in fact,
Img labels cannot display images using absolute paths. img absolute paths
Note: The disk path slash of the image is "\", and the network path of the image is.
If this image is a server image or network image, we must use the network path in the Img
Summary of common operations on JavaScript strings (very practical) and javascript Summary
String Truncation
1. substring ()
xString.substring(start,end)
Substring () is the most commonly used string truncation method. It can receive two parameters (
Clear Floating Method resolution, clear floating resolutionClear Floating Method parse to clear the additional impact of floating
If you are not familiar with float, you can refer to the articles about float. Portal: CSS float
We know that if a
Bootstrap simple form display learning notes and bootstrap learning notes
Form Layout
Vertical or basic form
BootStrap comes with the basic form structure. The steps for creating a basic form are as follows:
1. Add role = "form" to the parent
Detailed description on how the applet obtains photo album photos.
The applet obtains the photo album
Today, I met with the user profile picture setting function of the mini program and took notes.
First upload gif:
Run the following code:
Small
Detailed description and examples of the carousel diagram of the mini-program swiper component, and the mini-program swiper
Small Program swiper component carousel Diagram
Try according to the development documentation, and always get something.
JS implementation countdown (days, hours, minutes, seconds), js days
The example in this article explains the detailed process of JS countdown for your reference. The specific content is as follows:
Note:The parseInt () function parses a string and
In JavaScript, Throttle, Debounce, and Immediate are regularly controlled. throttledebounce
Preface
We call these actions events and respond to callbacks ). A continuous event stream is called an event stream ). The speed at which these behaviors
Http status code-reprint, status code reprint
1. Some common status codes are as follows: 2 200-the server successfully returns the webpage 404-the requested webpage does not exist. 503-the service is unavailable.
1 1xx (temporary response) 2
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service