JavaScript Regular Expressions
正则表达式Use to match a certain pattern in the string character combination of patterns, in the actual development of the use of frequency or relatively high, strong regular expression, can greatly facilitate our
operating Environment : the environment in which JavaScript code snippets are executed (can be understood as scopes in C/s + +)"Personal understanding" Variable Object : The first is an object that holds all the variables and functions of the
Advantages:
In the process of asynchronous execution, the code that executes the code and the result is clearly separated (because the Promise object has a chained notation, then and catch)
Combined with promise, many
1, JS in the function of the overloaded: JS function, parameters are not required, a function hypothesis defines a few parameters, then the caller can pass, or can not pass, can also be only a two .... can also be transmitted a lot, so we can not
All the time, the code execution sequence for JavaScript, most people will think顺序执行var=function{ console.log(‘foo1‘);}foo(); // foo1var=function{ console.log(‘foo2‘);}foo();// foo2It all seems reasonable here, but it's not as simple as it
First, a simple understanding of JS typeof, will return six typesThat is, number string Boolen function object undefined is also six basic data typesThere are probably several types of display type conversions: Number () is converted to number type
The use of regular expressions in program applications is very extensive.First the regular expression is generally written between two slashes:/Regular Expression/followed by two symbols ^ and $, the symbol ^ represents the beginning of a string,
Come in this morning to meet a bug like this:2 digits after the decimal point are not retained when the percentage is calculated, causing some results that cannot be divisible to be displayed too longAt first, I thought this was a very common bug,
JavaScript design Pattern The 1th Chapter flexible Language--javascript
The novice programmer receives a task that verifies the form function, needs to verify the user name, the mailbox, the password and so on
* * The content of this
The prototype chain is the basis of JS object-oriented, very important. One, there are several ways to create objects: 1, literalvar o1 = { name:' O1 '};2, constructorvar function (name) { this. Name = name;}; var New M (' O2 ');var a = {} is
operator to operate on one or more variables or values (operands) and return a new valueDepending on the operation performed, the operators can be divided into the following categories:(1) Arithmetic operators(2) Comparison operators
When exposed to Angulr.js and Vue.js, the most mentioned is two-way bindingThe following two-way binding of data is implemented with JavaScript JavaScript implements two-way binding of data
First, The history of JavaScript
1992 Nombas developed the embedded scripting language for C-minus-minus (c--) (originally bundled in Cenvi software). Rename it scriptease. (The language that the client executes)
Netscape (Netscape)
1 DOCTYPE HTML>2 HTMLLang= "en">3 Head>4 MetaCharSet= "UTF-8">5 title>Documenttitle>6 Head>7 Body>8 Script>9 //concat (): Connect two strings to return a new string and will not be modifiedTen varstr1= "Hello"; One
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.