1. JavaScript's run-time model-event loopJS's runtime is a single-threaded runtime, unlike other programming languages such as c++,java,c#, which can be used for multithreaded operations. When it executes a function, it only goes to the black one
Process Control in JavaScript is basically the same as JavaDivided into sequential structure, selection structure (branching structure, conditional structure), cyclic structure1. Sequential structureis executed in the order of writing, which is the
The name of the function and the variable is always a headache, the first variable bar, I believe that know JS friends know that in JSThere is no block-level scope for only function scopes, which means that blocks of code that are delimited by curly
1, identifierAn identifier is a term called a constant or variable named in a program, and not all character composition is a valid identifier, as follows:
The component of an identifier can be a letter, a number, an underscore, or a dollar
Run-time ConceptsThe following section explains a theoretical model. Modern JavaScript engines focus on implementing and optimizing several of the semantics described.Visual DescriptionStackA function call forms a stack frame.function Foo (b) { var
Using native JavaScript implementations:1. Remove (selectors) deletes the specified element or set of elements.2, recover (selectors) restore the element just removed.1 functionRemove (selectors) {2Selectors.removenode = []; 3
Tag: The His div Java function adds color traversal test1.JQ objects are normal objects generated by the JS new object.2.JQ objects and JS objects, their methods cannot be shared! 3.jq object and JS Object Mutual Transformation:JS object to JQ
find node ocument.queryselector (selectors) Takes a CSS selector as a parameter, returning the first element node that matches the selector. document.queryselectorall (selectors)//accepts a CSS selector as a parameter, returning all element
Javascript中作用域就是变量与函数的可访问范围, that is, the scope controls the visibility and life cycle of variables and functions. The scope of the variable has global scope and local scope two kinds. When looking for a variable, it is looked up from the
Methods for creating arrays in 1.JavaScript:(1). Use the array constructor:var New Array (); // create an empty array var New Array (5); // when an integer is passed, an array of length 5 is created, and if a string is passed, the array that
=========================================JavaScript gets the current deployment project path:The main use of the Location object, which contains information about the current URL, is a part of the Window object that can be accessed through the
Chrome 66 Disables sound autoplayThe sound does not play automatically this is always a convention on the Ios/android, and the desktop version of Safari in 2017 also announced the ban on multimedia autoplay with sound, followed by a April 2018
var mydate = new Date ();Console.log (Mydate.getfullyear ()); Get the full year (4-bit, 1970-????)Console.log (Mydate.getmonth ()); Get the current month (0-11, 0 for January)Console.log (Mydate.getdate ()); Get current day (1-31)Console.log (Mydate.
To write a JS effect step:
First realize the layout;
Understand the principle of animation implementation;
Understand the JS syntax;
JS how to get elements?
document.getElementById(‘link’)
Event
Mouse
Traversing way of binary treeis the middle sequence traversal (left subtree, right subtree, currentnode), Pre-sequence traversal (current node, left dial hand tree, right subtree), post-order traversal (left subtree, right subtree, current node).
A closure is a function that accesses a variable in the outer scope of its function, that is, a variable that can call a function in a function outside, in fact, a bridge that connects the inside and outside of a function.Closure three major
3 set of built-in objectsBrowser Object ModelThe browser object model is used to create a model of the browser window.At the top is the Window object.Underneath the Window object object are child objects, which can also have child objects, and
1.JavaScript Fundamentals 2. Syntax rules 3 common built-in objects 4 functions 5 pseudo-Array 6. Exception Handling 1.1 Web front end is divided into three layers
HTML: describing the structure of a page from a semantic perspective
CSS:
Try to set reminders, catch to capture return values② Provinces and cities linkageTo fill the loop before emptying,The code is as follows:DocumentCountry: City: Location: JavaScript Learning Second Lesson--① input judging ② provinces and cities
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