First, basic type and value of reference typeDynamic PropertiesTo create an object:1. constructor Creation : New Object2. literal creation :{} Object Add Property: object . Property name = value Object Add Method: object . Method Name =function ()
Introduction to Regular expressionsset of Rule Expressions1. Application Scenarios for regular expressionsForm Validation parsing URL parametersFilter .... 2. Definition of regular expressionsliteral form === " //constructor Form === " new RegExp
In the world of JavaScript, all code is single-threaded
Due to this "flaw", all the network operations of JavaScript, browser events, must be performed asynchronously. Asynchronous execution can be implemented with a callback function
An
1. Display the current time in the Web page in real time Show System time on page Current time: 2, achieve the effect:JS Display dynamic system time--javascript base
The default object representation of JavaScript {} can be thought of as a map or dictionary data structure in other languages, a set of key-value pairs.But the JavaScript object has a small problem, that is, the key must be a string , but actually
1.3 ways to define a function:// The 1.function statement will only be interpreted once, and the following will overwrite the previous one, with precedence resolved function test1 () { console.log (' test1 ');} Test1 (); // 2. The direct amount
First, develop good coding habits, improve maintainability1. Avoid defining global variables and functions, and solving global variables. The simplest method of "pollution" is to encapsulate variables and methods on a variable object, making it a
Use of the regular expression match, exec, and testMatch and Exec return an array when matching succeeds, and all returned when no match is null;test returns true if the match succeeds and false if no match is returned. Match is a method of string,
Tag: Man type number this pre parameter Cap blog returnJavaScript APIs are inherently Base64, so we can easily encode and decode them.var encodedata = Window.btoa ("name=xiaoming&age=10")//codevar decodedata = Window.atob
JavaScript Common Word collationPush: Add an array elementDocument : documentsPop: Delete the last array elementConsole : consolesShift: Delete the first element of an arrayString : stringsConcat Combined Arrayundefined: Not definedtypeof:
Tag: Indicates select Alert No application developed his field objAn overview of JavaScript objectsWhat is an object is, in fact, a type, that is, a reference type. The value of the object is an instance of the reference type.A reference type in
ECMAScript Inheritance: The implementation of inheritance----inherited the actual method, the most important is to use the prototype chain1. Prototype chain inheritanceThe basic idea of a prototype chain is to inherit from another reference type by
An internal object that is automatically generated when the function is run, and can only be used inside the functionAs the function is used differently, the value of this also changes, but there is a general principle:This refers to the object that
Because of the university curriculum, the teacher giant love ask questions, also score, casually record JS learning situation, later review what is more convenient bar ...Start, just follow the C language to learn the way to it!======================
In jQuery, only one CheckBox can be selected for two columns in the table. jquerycheckbox
// Html
Option 1 Option 2 name Xiaohong James
// JQuery
// Temporarily unable to upload dynamic files. It is useful for test.
Applet -- location API, -- locationapiThe location API can be divided into two types: wx. getLocation (object) to obtain the current location and wx. openLocation (object) to open the built-in map through the longitude and latitude. The parameter
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.