This in JavaScript, when it comes to JavaScript, is all about how dexterous and important it is, but doesn't care about it, and it's really important when you get to know the JavaScript step-by-step. So, I spent about 2 weeks to check and read the
One, to use the regular expression related method, first must understand the regular expression basic usage, excerpt from Baidu Encyclopedia:
Metacharacters
Describe
\
Marks the next character as a special character,
JSCalendar1.0 jscalendar-1.0.rar (60.78 KB) official website:http://www.dynarch.com/projects/calendar/Download AddressDownload:http://prdownloads.sourceforge.net/jscalendar/jscalendar-1.0.zip?download should be said to be now the most complete, most
scope of a variable
To understand closures, you must first understand JavaScript's special variable scope.
The scope of a variable is nothing more than two kinds: global and local variables.
The special point of the JavaScript language is that the
JavaScript isNaN (VAR) function, returns a Boolean valueUsed to determine if VAR is a non-numeric value, if the Non-numeric value returns True, or False if it is not.
Cases:var intnum = 4;var floatnum = 3.1415;var str1 = "I am a student";var obj=
Objective:
This is a reprint reprint, I would like to only collect an address, found here to share can not be used, so reproduced again, only to do their own learning notes to use.
I reprint the source:
: Network Disk DownloadIf you use JavaScript to build an interactive web app, JavaScript code can be a major cause of your web app's slowness. High-performance JavaScript reveals technologies and strategies that can help you eliminate performance
1 DOCTYPE HTML>2 HTMLLang= "en">3 Head>4 MetaCharSet= "UTF-8">5 title>title>6 Script>7 8 /*9 *Ten * JavaScript is divided into three sections: One * ECMAScript Standard: The basic syntax of JS A * Dom:document Object
today, summarize the focus of the object and the easy-to-understand points of knowledge. 1 There are two main types of JavaScript, basic types (including string,number,boolean,null,undefined) and objects. Whereas functions, arrays, built-in objects
LengthThe History.length property holds the number of URLs for the history record. Initially, the value is 1. Because the ie10+ browser returns 2 at initial time, there is a compatibility issue, so this value is not commonly usedJump method Go (),
Calculate the sum of n numbers and
Recursive implementationfunction getSum(x) { if (x == 1) { return 1; } return x + getSum(x - 1);}var result = getSum(100);console.log(result);
Ask for a number on each digit and: for example:--->5
Basic understandingJavaScript objects can be divided into two categories:
ordinary objects, except for objects other than the function object, are instances of the new function object () , the normal object is not prototype, and there is no
JavaScript is passed by value, but it is the case to know that the original value will change after delivery, or there will be a bug that you can't think of.One, by value pass--meta type inputTip: The arguments passed in by the meta-type (number,
Defining arrays
There are two ways to define an array:1, var arr1 = []; Define an empty array2, var = [arr2, "str1", "str2"]; Defines an array of 5 elements.3, var arr3 = new Array (3); Define an empty array4, var arr4 = new Array ("str1", "str2
Five. Addition and deletion of array elementsthe simplest way to add an array element: Assign a value to a new indexa = [];//Start is an empty arrayA[0] = "one";//add elements to it;You can also use the push () method to add one or more elements to
I. Conceptual interpretation? function throttling and function stabilization, both are a means of optimizing high-frequency execution of JS code.? Everyone probably knows how the old TV set works, which is to scan the color on the screen and form a
original link:https://boostlog.io/@sonuton/23-javascript-design-patterns-5adb006847018500491f3f7fTurn from:https://mp.weixin.qq.com/s?__biz=MzUxMzcxMzE5Ng==&mid=2247488996&idx=1&sn= c337e4cfe2a67550f5f22536d58a9735&chksm= f951a0a7ce2629b13bb306f9a241
The only thing I can think are in fact and window.event it makes itself available when some event dispatches and Event...but that would mean this any element could get this event information if called at the same time as the event time It
/* Excerpt from a front-end public number If there is a similarity, purely coincidental */function init (arguments) { return new Promise (checkforargument);} function Checkforargument (resolve, Reject) { try{ if (arguments) {
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