The difference between strict and non-strict modes is as follows (the first three is particularly important):The WITH statement is forbidden in strict mode.In strict mode, all variables are declared first, and if you assign a value to an undeclared
/** 1. If in rendertitle,rendercontent, such total data who can modify, unsafe * improved * 1. Specify a method to modify the data, if you want to modify the data can only go this method * * Action represents a Command object, is a normal JS object,
The History object provides information about the historical list, including the URLs of the 10 most visited pages1. Common Properties of History objectslength Returns the number of URLs in the browser history listthe Length property of the history
Write in frontWriting easy-to-maintain code, the most important aspect of which is the ability to find recurring themes in code and optimize them, which is the most valuable part of design patternsSpeaking of which ...There is an article in head
Do not need to deliberately memorize functions or commands, to learn to use technical documents, and with more natural to remember.Remove the Nostroke () call to remove Nostroke function calls.Stroke (255, 0, 0); Line Color default red. RGB Color
1, see the following example, note that the function in the functions of this refers to the Window Object!!!Document.addeventlistener (' click ',function(e) {Console.log ( This);//This->document, who added the event on who this is referring
First, JS data type1. Base type: String type (String), numeric type (number), Boolean type (Boolean)2. Complex types: Array types (arrays), object types (objects), function types (functions), regular types (regexp)3. Null type: Undefine and
1.DocumentProperty:Referrer// returns the URL loaded into the current document URL// return URL of the current document Method:getElementById (); get html element objects by IDGetelementsbyname (); gets An array of HTML element objects by
Code execution is generally top-down, and variables need to be declared before the function segment used and given an initial value.Code Specification writing:1. Use the TAB key after the code snippet is selected to make the snippet move to the
The script in the HTML must be between the tags.The script can be placed in the and sections of the HTML page. will tell JavaScript where to start and end.The lines of code between contain JavaScript:JavaScript in In this example, JavaScript
Let's start by saying how this problem arises: look at the sorting algorithm today, and want to compare the time spent on different sorting algorithms.The simplest time-to-count method is to clock the block at the beginning and end of the program,
To write a simple Babel plugin, we can use the http://astexplorer.net/to help us.The plugin we want to write are:var foo = ' o 'var bar = ' o '= = = Barfunction= = = bar;}We want to trasnform the code which highlighted in Foo () function to:_foo =
What is a memory leak?Any programming language that needs to be used in memory at run time, e.g. in a function, var arr = [1, 2, 3, 4, 5]; For such an array, memory is required.However, after using these memory, if they are not used again, but are
How to learn JavaScript efficiently?HTML5 Academy-code Carpenter: JavaScript Learning is much more difficult than HTML and CSS, its knowledge is cluttered and numerous, how to learn efficiently? What sequence should JS's knowledge system be built in?
Yang Hui triangle algorithm is relatively simple to understand, just want to better in the console to achieve triangular output is not so simple.Based on the current study, a two-dimensional array is used to implement the Yang Hui Triangle.Each row
Wow.js?animate.css--interesting Page scrolling animation, wow.jsanimate.css
Today, I accidentally found a particularly simple page animation effect, which is quite good. I played for a morning and now I will introduce this rolling Animation:
I.
Webapck html-loader achieves resource reuse and webapckhtml-loader
1. Installation
npm i html-loader --save-dev
2. project directory
The footer.html file under the layoutfolder is:
The head-common.html file under the layoutfolder is:
The
What do you need to know about Web Front-end development specifications?What you need to know about the Web Front-end development standard documentationPurpose
This document is specially formulated to improve team collaboration efficiency,
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