Basic data type:Number: Contains integral and floating-point types, Nan not a number, which is of the number data type, Nan as long as comparison, Boolean value must be falseString:Boolean:true/falseNull: Used to define an empty objectUndefined------
The string type in JavaScript is used to represent a sequence of characters consisting of 0 or more 16-bit Unicode characters, and the string can be expressed in single or double quotation marks.Here are some special literal quantities:Special
JavaScript encapsulation:var function (ID, name, price) { the. id = ID, this. Name = name, this. Price =function () { // display book } var New Book ("JS", "Book.display");console.log (Book.name) ;Question: What is the
Creating JavaScript ObjectsWith JavaScript, you can define and create your own objects.There are two different ways to create a new object:
Define and create an instance of an object (directly created)
person=New Object ();p
First part scope and closureWhat is the scope of the 1th chapter?1.1 Compilation principle1.2 Understanding Scopes1.2.1 Actors Table1.2.2 Dialogue1.2.3 compiler has something to say1.2.4 Engine and Scope dialog1.2.5 Quiz1.3 Scope nesting1.4
1 Window ObjectIt is an interface that accesses the browser window via JS, and is also the global object specified by ECMAScript.1.1 Global scopeGlobal variables cannot be deleted through delete, but the properties defined directly on the Window
Javascript prototype chain data collectionFirst collect, then understand.Understand JavaScript's prototype chain and inheritance https://blog.oyanglul.us/javascript/understand-prototype.htmlInheritance and prototype chain
1-4 how objects are created
property is the characteristic of the object, and method is the behavior of the object.
1. Object literalsvar o = { name: ‘zs‘, age: 18, sex: true, sayHi: function () { console.log(this.name); }}; 2.
There was a loaded colleague who wrote a piece of codefunction a(){}a.__proto__.__proto__.__proto__ Then ask me, this thing a.__proto__.__proto__.__proto__ What, and then I look at the face, prototype also know a little, this __proto__ , Three
Ylbtech-javascript-tool:my97datepicker
1. back to top
1, 2, download Https://files.cnblogs.com/files/storebook/javascript_tool_my97datepicker.rar3,
2. back to top
3.
Specify the type of upload filevalid accept types:for csv files (. CSV), use: For Excel Files 2003-2007 (. xls), use: For Excel Files 2010 (. xlsx), use: For Text Files (. txt) use : For Image Files (. png/.jpg /etc), use: for html files
JavaScript Component Development--a way of code reuseRicher forms of Code utilizationFirst, make a frame.Custom events: Mainly related to functions, that is, let functions have some characteristics of eventsThe problem with the function itself: it
In the browser of IE kernel, the following code supportsdocument.all (i). Tagname.tolowercase ();However, in Firefox, the above code is not supported, so you need to use the following line of code instead of the above
First, Background introduction(i) Three styles of web development:Structure: HTML: Describing the structure of a page from a semantic perspectiveStyle: CSS: From an aesthetic perspective, describe the style (beautify the page)Behavioral (dynamic)
1.JavaScript HTML DOM eventlistener1.AddEventListener () methodTo trigger a listener event when the user taps the button:document.getElementById ("mybtn"). AddEventListener ("click") , displaydate);The AddEventListener () method is used to add an
1. Simulate the modal frame in bootstrap: (Click after me, pop-up dialog, the bottom of the content can be seen, but there is a certain degree of transparency.) )Thinking Analysis:The whole is divided into three layers, the lowest level (point me),
Project sometimes need to filter something out, multi-layer loop is too lazy to write, so found thisvar lib = [ {name: ‘王大‘, age: 18}, {name: ‘网二‘, age: 16} ]; var result = lib.filter(function(m) {
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