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
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
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
1.JavaScript number ObjectJavaScript has only one numeric type.You can use it or you can write a number without using a decimal point.1.1JavaScript DigitalJavaScript numbers can be used or written without using a decimal point:var pi=3.14; // Use
=========================================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
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.
No should not, only you like not to like. The fact that JavaScript syntax is c-like does not mean that it is essentially a class of languages, and that all intuitive "of course, semicolons" are conservative and hasty conclusions without deep thought.
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:
Math.PI This value is approximately 3.141592653589793.Math.ceil (x) rounding upMath.floor (x) rounding downMath.pow (x, y) returns the Y power of X (Note: If the result is an imaginary or negative number, the method returns NaN.) If a floating-point
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
One, the loop in native javascript: for Loop code block a certain number of times, it has three parameters to determine the number of cycles of the code block, the first is the initial value, the second is the terminating value, the third 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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service