ECMA-262 defines an object as: "A collection of unordered attributes whose properties can contain basic values, objects, or functions." ”Strictly speaking, this is equivalent to saying that the object is a set of values that do not have a particular
First, usageIts location has three pieces, 1, head inside 2, body inside 3, after generally written in afterIts usage is
Two or three common dialog boxes1. Alert ("") warning dialog box only OK and close2, confirm ("") Ok dialog box has OK
Difference:Get: Generally used for information acquisition, using URL to pass parameters, the number of messages sent is also limited, generally in 2000 charactersPOST: Generally used to modify resources on the server, there is no limit to the
One: validation date1: Date must meet YYYY-MM-DD format2: Date must be a valid date, such as 2016-02-30 is not present1 //Verify date of appointment2 functioncheckvisitdate (date) {3 varReg =/^ (\d{4})-(\d{2})-(\d{2}) $/;4
What is it?https://www.promisejs.org/
What is
a promise?
The core idea behind promises is, a promise represents the result of an asynchronous operation. A promise is in one of three different states:
Pending-the initial state
A Web page with a URL that begins with an HTTP protocol, that is, a Web page on a server that does not display computer-local pictures.If you want to view a local picture but do not use the server-side upload feature, you can use the HTML5
Let statement-Declares a block range variable.Grammar1 Let variable name = initialization value;Example1 "use strict"; 2 Let name = ' Zhao '; 3 (function opt () {4let name = ' Zhang Mowgli '; 5 Console.log (name); 6 })(); 7 Console.log
JavascriptA programming language that is compiled and run by the browserFirst, JS existence form
JS file
HTML in the current code block
Placement: The bottom of the body tag, first display page content, and then load JS effect,
7.2 ClosuresDefinition: A closure refers to a function that has access to a variable in another function scope.Understanding closures:
Scope chain: When a function is called, an execution environment and the corresponding scope chain are
In the early days of "Netscape" (Browser wars), there were two very different ways of dealing with Microsoft:
Netscape asserts that element 1 events occur first, and this sequence of events is called the capture type
Microsoft retains
Css knowledge point sorting and css knowledge points
CSS is short for Cascading Style Sheets. It is called a Cascading Style Sheet in Chinese. It is used to control the performance of webpage data and separate webpage performance from data
A detailed explanation of how to prevent repeated button clicks within a limited time period in javascript, and a detailed explanation of javascript
Previous
One day, I repeatedly clicked the refresh button on the homepage of the blog site to
Complete Understanding of the Classic Mode of js object creation, and comprehensive understanding of js
1. Overview
Create an object through the constructor, and sometimes forget to write new, then the function will return undefined
You can create a
A comprehensive understanding of the map () method provided by js, jsmap
1. Method Overview
The map () method returns a new array consisting of the returned values after each element in the original array calls a specified method.
2. Example
2.1 use
A comprehensive understanding of the sort () method provided by js, jssort
1. Method Overview
By default, the sort () method of Array converts all elements to strings and then sorts them by Unicode,
Sort () will change the original array and return
Summary of methods for reading and writing CSS styles by JS, and css styles read and write by js
For future convenience, I have read some documents and summarized the following methods, only for native JS. If there is anything wrong, please point it
AngularJS includes detailed explanation and sample code, and angularjs sample code
HTML does not support HTML pages embedded in HTML pages. You can use the following methods to implement this function:
1. Use Ajax-Let a server call to obtain the
AngularJS custom commands and sample code, angularjs sample code
Use AngularJS in custom commands to expand HTML functions. Define the "command" function used by custom commands. The custom command only replaces the activated element. The AngularJS
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