JavaScript document Properties and Methods -------------------------------------------- Properties :1. Attributes storage node's attribute list ( read Only )2. List of child nodes of the ChildNodes storage node ( Read Only )3.DataType Returns the
The ForEach () function iterates through the array from beginning to end. There are three parameters: the array element , the index of the element , the array itself (if a parameter is an array element, that is, the value of the array).1 vardata=[1,2
Window Browser:-Location: Address-History: Historical-Document: Documentation-Screen: Window-Navigator: Help> 1. The external object is the browser-provided API--**bom**> 2. These objects are defined by the Internet Explorer and developed by the
ES6 Core FeaturesBlock-level scopes Let: the existence of a block-level scope for a declared variable does not declare advanceES5// declare ahead of var x = ' outer '; function Test (inner) { if (inner) { var x = ' inner ';
Scope:Variables also have a range of function functions.The browser's kernel has two main functions, one is the rendering page and the other is our JavaScript interpreter.We mainly talk about how the JavaScript interpreter works in parsing.At the
# Closed Bag #My understanding: In the interview, first say the scope chain, and then the cause of the closure, then garbage collection GC, finally said closures.A. A variable declared inside a function is its private variable.B. In JavaScript
JavaScript is not an object-oriented language, but we construct it to support object-oriented, so that we can implement object-oriented features such as inheritance, rewriting, and so on. The specific code is as follows://create a class
ZhuanHttp://www.ruanyifeng.com/blog/2013/01/javascript_strict_mode.htmlIn addition to the normal operating mode, ECMAscript 5 adds a second mode of operation: "Strict mode" (strict). As the name implies, this mode allows JavaScript to run under
Why does the code have to write like this?function Initui () {var doc = document, BD = doc.body, links = doc.getelementsbytagname_r ("A"), I = 0, len = links.length; w Hile (i And not like that?Avoidfunction Initui () {var bd = document.body, links =
Straight Cut ThemeToday we have a feature like this:
Write a function that passes two parameters, the first parameter is the total amount of data returned by the object, and the second parameter is the data of the initialized object. Such
Regular expressions are an ingenious tool that is often used to find and replace strings, JavaScript references Perl, and regular expression-related modules, which are very useful in development, and in some class libraries or frameworks, such as
When you use the readonly= "ReadOnly" property to set the text box to read-only A problem occurs, if the cursor enters a read-only text box, Then press the BACKSPACE key, will jump to the previous page, the effect is like clicking the browser Back
JavaScript Data typesThere are 5 different types of data in JavaScript:
String
Number
Boolean
Object
function
3 Types of Objects:
Object
Date
Array
2 data types that do not contain any values:
object-oriented DesignThere are two types of properties in es : Data properties and accessor properties
Data Properties :
the Data property contains the location of a data value , where the value can be read and written , and the data
JavaScript (1) The first time I saw javascript, I saw the familiar "Java", the original is a lie, Li Ghost is not Li Kui ah =. however, finding this thing is particularly useful, and it's much simpler than java, just a lightweight scripting
Convert display to bulk, and convert display to bulkDisplay: The block element occupies only one row, and multiple block elements create a new row. By default, the block element width automatically fills the width of its parent element. You can set
Html checks whether the current page is in an iframe instance. The current iframe
When making HTML pages, we often encounter "if the current page is displayed in iframe, we will handle it accordingly"
The judgment method is as follows:
//
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