This example mainly uses the frame principle, when clicks the link, the other two pages simultaneously changes, the concrete method is as follows:
first define a method:
When you click the link, call the method
onclick= "Initrightframe (
Knowledge Content:1.JavaScript function2.JavaScript ScopesReference: JavaScript Advanced ProgrammingFirst, the functions in JavaScript1. Definition of functionsAfter learning Python, the definition of the function is no longer unfamiliar, and the
Window stands for browser window, width height these thingsNavigator Browser name, version, user-agent and other thingsScreen information on computer screensLocation URL InformationDocument page InformationHTML is represented as a tree structure in
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
Excerpt address Quick StartNO1:JavaScript is strictly case sensitiveNo2:JavaScript does not distinguish between integers and floating-point numbers, and is uniformly represented by numberNan means not a number, which is represented by Nan when the
Lists are more flexible and scalable than arrays. It mainly consists of node data and pointers pointing to nodes.Implementation of nodes in a linked list "elements and pointers": function (Element) { this. Element = element;
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
This article is a reference elevation (JavaScript advanced programming) with some personal understanding and summary, using simple small examples and some code snippets to explain the scope and scope chain as much as possible. (This article applies
Recently exposed to some of the new features of ES6, you want to borrow let and const two commands to talk about JavaScript improvements in terms of variables.Since let and const have a lot of similarities, we'll start by saying let.1. Let adds a
Common methods:1. Access node: Obtain a specified node through DOCUMENT.GETELEMENTBYXXX () and then access the node through the following attribute nodes:First part: Node propertiesA:parentnode returns the parent node of the nodeB:childnodes returns
Binary tree and two fork search tree conceptA tree is a non-linear data structure that stores data in a hierarchical manner.Trees are used to store hierarchical relational data, such as file system files;The tree is also used to store a sequence
To understand the prototype chain, first understand the following points clearly:1. All functions are instantiated with the function, which contains the prototype attribute, which is the prototype object.2. All objects have the __proto__ property,
1.JavaScript Strings (String) objectA String object is used to handle an existing block of characters.1.1 JavaScript stringA string is used to store a series of characters like "John Doe".A string can use either single or double quotation marks:var
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
Object ()
If the parameter is a value of a variety of primitive types, the object is converted to a wrapper object that corresponds to the original type value:
var obj = Object(1);obj instanceof Object // trueobj instanceof Number //
Javascript's judgment about if (XX) and x==y is very important, but the following is a summary of what I learned:1, if (XX) judgment:In the case of the IF (XX) judgment, the contents of the parentheses are coerced to the Boolean type, the result is
DOM: Defines the standard for accessing HTML and XML documentsCore dom-Standard Model for any structured documentXML dom-Standard Model for XML documentsHTML dom-Standard Model for HTML documents------------------------------------------DOM node:
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
typeofThe operator returns a string that represents the type of the operand that was not evaluated.JavaScript demo:expressions-typeofConsole.log (typeof ); // expected output: "Number" Console.log (typeof ' blubber '); // expected output: "string"
Code:/* @desc: Time-Date function set @author [Lee] ]>*/function datetime () {/* @desc: Internal method, less than 10 complement 0 @ param input value @return ret converted value */this.parsetime = function (input) {var ret if (input >= 0 && input
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