function Promotion:For all variables, no matter where the function body is declared, it will be promoted to the top of the function in the background. The same is true for functions, because the function is simply the object assigned to the variable.
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.Simple code: ScriptType="Text/javascript"Src="Xxx.js" >script> script type="Text/javascript" > var i = 10; function say(msg) {alert (msg);}
One. JavaScript is a scripting language, characterized by: explanatory, Object-based, event-driven, security and cross-platform featuresFor these features it is necessary to explainExplanatory: Javascripte itself is an explanatory
The length of the JavaScript calculation string is distinguished in English and Chinese:Calculating the length of the string is a common operation and the code is as follows:var str= "I Love Ant Tribe"; Console.log (str.length);The length of the
Yesterday, when the annual meeting saw a joke that the only product will be the annual prize draw, the results of the prize is written by the Department of Lottery procedures, the CTO site review code.Simply think about the implementation of the
1.1 JavaScript History
Async/defer can control the JS loading sequence
Put the JS file at the bottom of the page to speed up page opening
3 Basic Concepts
Grammar
Data type
Flow control Statements
First, the Transformation function Boolean ()The values of all types in ECMAScript have values that are equivalent to the Boolean value (True and false). To convert a value to its corresponding Boolean value, you can call the Transform function
The priority of an operation is the order in which operations are performed during the evaluation of an expression. An operation with a higher priority performed first, followed by a lower-priority operation. For example, execute multiplication
Understand the HTML box model and the HTML Box Model
In the layout of HTML, there is a very important model, that is, the box model. In the box model, the TAG content is understood as an item, the css style is understood as a box containing this
The select drop-down based on jQuery can be input for source code download, jqueryselect
We know that the select drop-down box can only be selected and cannot be used to input content. Sometimes, when there are no information items to select in the
JQuery implements the example code (Common Code) for div drag at will, jquerydiv
Pay attention to the js location, which should be placed close to it. If it is overwritten by others, it cannot be moved.
For example:
movable DIV
Introduce jquery.
Js + canvas simple circle drawing method, jscanvas circle drawing
This article describes how to draw circles in Javascript + canvas. We will share this with you for your reference. The details are as follows:
The running effect is as follows:
The
Record the css style reuse in a project, and reuse the project css style
Synchronize this article to public number: http://mp.weixin.qq.com/s? _ Biz = MzAxMzgwNDU3Mg ==& mid = 401616238 & idx = 1 & sn = 3c6e965283c632e9035875be43e6a305 & scene = 0 #
CSS box model, css boxBox Model
In the world where CSS is all framed, today I want to talk about my understanding of the CSS box model. If there is anything wrong, please pat the bricks.1. What is the CSS box model?
In general, the CSS Box Model
Summary of basic JavaScript knowledge and basic javascript knowledge
Array method:
Array. concat concatenates one array to another and returns a compositing array. Var arrC = arrA. concat (arrB, 'asd ', 'sad', true, 1.5 );Array. join concatenates an
Hover the mouse over the small icon to display the big icon, hover the mouse over the icon
The page element is div-> table-> tr-> td. For images in td, hover the cursor over to display a large image. If you move the cursor away, the large image
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