Turn: http://www.cnblogs.com/anniey/p/6184301.htmlToday, I encountered a non-contact method, which is Localecompare (). Check out some of the relevant documents, the definition is vague, so write down your own understanding.Let's start with an
Recently went to the interview, with the interviewer chatted a lot of things on the basis of JS, one of the problems is to talk about apply, call, bind understanding and differences. Suddenly a Leng, apply, call I know, often use things, bind is
when we browse a very long page, we have seen the bottom, want to go back to the top of the content, but need to scroll several mouse wheel or pull the scroll bar to go a long "section of the road." This is not good enough for the user to experience.
①switch-case statementsSwitch...case ... Multiple branches, depending on the criteria, select Execute.Grammar:switch (expression) {The case expression 1://executes code Snippet 1 if the value of the expression = = = Expression 1;Code Snippet 1;Case
Look at the problem first1. What is the scope in JS?Scope is the scope of action, the space of action. Scopes are divided into global scopes and local scopes. (This thing everybody knows)If the local scope is compared to a country, then the global
The parameter this is very important in object-oriented programming, and his value depends on the mode of the call. In JavaScript, there is a total of 4 call Patterns: Method invocation pattern, function call pattern, constructor invocation mode,
One of the most common features in the JavaScript library is the selection of DOM elements that match a pattern based on CSS selectors. In fact, the core of jquery is querying DOM documents with CSS selectors to get references to elements, thus
Write maintainable codeMaintenance, modification, and extension of code are both time and labor-intensive, so in order to reduce unnecessary costs, it is necessary to write maintainable code from the outset, so that you can also facilitate the
for (var num1 =1;num1 10;num1++) { for (var num2 =1;num210;num2++) {Console.log (num1+' * ' +num2+' = ' +num1*num2)}console.log ("")}TODO question one: Why would you break a lineTODO during the test I found that in the console every nine times a
1. Looking at two examples, I think the judgment here is defined:!var actually refers to whether it is defined in function functions. Only in the funciton inside the definition, JS hoist to the top to find the value of the variable, otherwise,
Promise in JS
callback function The real problem is that he deprives us of the ability to use return and throw these keywords. And Promise a good solution to all this.
In June 2015, the official version of ECMAScript 6 was finally
The previous three articles simply pass through the JavaScript basics, and we can already write some simple code in JavaScript.Today, we summarize some of the methods that come with the string object in JavaScript to help us work with the strings
1. Data type: Boolean,null,undefined,string,number, pointing to the contained data for "value passing";2, non-data type: Array,function,object, pointing to a memory address, which holds the specific data, "reference delivery";3, == and === will only
The article starts at the Third Frontier Research Institute of SZHSHP, reprint please specify
First look at a few interview questions, the company's developers have tried to do a bit, but basically no one can answer all.Coverage of the test
Objective:I previously wrote in the blog park on the basis of a small article on the MVC, due to various reasons did not continue to write down, recently I am learning JavaScript, I want to use their own way to sort out, mainly to deepen their
Some Ideas about Internet Explorer and Internet Explorer
First, let me talk about my views on IE:
The first feeling is stubborn, isolated and Maverick. (It is always different from others. It is a nightmare for beginners)
The second feeling is
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