1. To view the contents of a variable, enter it in the console console.log(a); , and the value displayed after carriage return is the contents of the variable.2. Alert (' I don't want to execute '); Prompt box Google browser can be directly executed3
JavaScript introductionYou don't know what it is to learn? This is a web-embedded scripting language ... Just that.JavaScript compositionA complete JavaScript implementation is made up of the following 3 different parts:
Core (ECMAScript)
JavaScript programming StyleDouglas Crockford is the JavaScript authority, and the JSON format is his invention.Last November he had a speech (Youtube) about what a good JavaScript programming style was.I highly recommend this speech, which not only
Property TypeData Properties -A location that contains a data value that can read and write values
[writable]
Whether the value of the property can be modified
True
[enumerable]
ArrayArray creation:var troop=New Array (6); // Create an array of length 6 var troop=New Array (2,3,5,6,4,7) ;Array method:varStr= "I love JavaScript";varSingle=str.split ("");//' I ', ', ' l ', ' O ',.....varMutipy=str.split ("")
1. Definition of objectsIn ECMAScript, an object is an unordered set of properties, where the "property" can be a base value, an object, or a function2. Data properties and accessor properties
Data properties are properties that have values,
1. Six types of data5 Base: undefined,null,boolean,number,string (where Undefined derived from Null)1 Complex: Object (essentially a set of unordered key-value pairs)2. String to Number
Number (str): The first value is re-converted (valueof
The implicit type conversion, which is said here, is the conversion caused by = =.
Returns False if there is a Nan
And see if there's a Boolean, and Boolean converts the Boolean to a number.
Then see if there are no strings, there
There are two types of event propagation in Dom, one is capture (from parent node to child node), one is bubbling (from child node to parent node), so one event can have multiple processors to handle it, and the DOM standard contracts return False
Set the component title bar widthlisteners: { function(panel) { var header = panel.header; Header.setheight (+); }}View Codecompletely remove the frame of the component Basecls: ' My-panel-no-border 'View CodeSet
"Wake up" refers to the wonderful use of The Voice Group
The "wake up" written by Wen is undoubtedly a famous song in the audio industry, which can be often heard at audio conferences. When it comes to this song, the author will always remember
Es6 String extension (instance description), es6string
New Feature: Template string
Traditional string
Let name = "Jacky"; let occupation = "doctor"; // traditional String concatenation let str = "He is" + name + ", he is a" + occupation;
Es6 simple
Promise processes multiple interdependent asynchronous requests (for example ).
In projects, multiple interdependent asynchronous requests are often encountered. If there are three ajax requests, a, B, and c, B must depend on the data returned by a,
JS achieves banner image carousel effect (mouse event ),
1. effects to be achieved
1. switch between the left and right clicks
2. Click the dot to switch the image
II.
Iii. Code
1. css
2. html
>
3.
Detailed description of how Javascript implements cross-origin background settings interception, javascript
This article mainly introduces you to the content related to the cross-origin backend settings of Javascript, and shares the content for your
Create a table using div + css, divcss
roster: NO. name age footer footer footer 1 John 19 2 Mark 21 3 Kate 26
Css
ul{margin:0;padding:0;list-style:none;}
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