The foreground technology is easy to get started, grasps the main account some fine bits of technical point will bring the development to the greater convenience. This article continues to be updated to record common JavaScript technical points.
1.
We usually use the tab switch effect, the following figure:
This effect is very common, with JS can be achieved.
Layout Analysis:
We can first let one of the content display, the other content first hidden, when the user clicks on the head tag, you
Share to all comrades:
. document.write (""); for output statements2. The comment in JS is//3. The traditional HTML document order is: Document-> HTML-> (head, body)4. The DOM order in a browser window is: Window-> (Navigator, screen, history,
# "contains a location information
The default anchor point is #top, which is the top of the page.
and javascript:void (0) only represents a dead link
This is why sometimes the page is very long to browse the link obviously is the # but beat to the
In the use of JavaScript, we often need to delete a node, for node increase (appendchid/insertbefore), delete (removechild), replace (Replacechid) and other operations of the most critical place, I think it should be the parent node, and the child
JavaScript Objects
1, the creation of the object
1) Object Initializer method
Format: objectname = {property1:value1, property2:value2,..., Propertyn:valuen}property is an object's propertiesValue is the values of the object, which can be a string,
I wrote JavaScript for a year or two, but there were a couple of ambiguous points that bothered me. Then use the most recent spare time to digest these points.
1 The scope of JavaScript
The scope in JavaScript only has one--public scope. All the
Indent 2 spaces in first line eslint:indent
Functionhello (name) {
console.log (' Hi ', name)
}Strings use single quotes (except to avoid escaping) eslint:quotes
Console.log (' Hello there ')
$ ("")Prohibit unused variables
Debugging JavaScript in IE
Reprint url:http://www.ibm.com/developerworks/cn/web/1105_libo_iejsdebug/
Brief Introduction
Although more and more users are turning to non IE kernel browsers such as FireFox, Internet Explorer (ie, 6 and later) still has
Recently, in reading "You do not know the JavaScript (roll up)" This book, the book elaborated in detail JavaScript many important but often overlooked points, here strongly recommended ... In the book, the 4th Chapter describes "Ascension",
First, why use Require.js.
At the earliest, all of the JavaScript code was written in a file, and it was enough to load the file. Later, more and more code, a file is not enough, must be divided into multiple files, sequentially loaded. The
These plug-ins enable Web developers to quickly implement a variety of fine calendar and time selection effects. 1. The coolest Calendar
The interface is very beautiful a date selection plug-in, there is a detailed use of the document, the latest
1. Monitor the keyboard event source and keyboard action to achieve different operations
2. Use carriage return instead of the TAB key
Attached: Key values corresponding to keyboard keys
Originally, the judgement variable is not defined is very simple, direct use of typeof can be
JS code if (typeof (obj) = = ' undefined ') {//...}
But today the dynamic variable (eval (variable)) is used in the project, resulting in the following
Recently in the study of the prototype JavaScript, found __proto__ and prototype, learning is very large, so studied.
First, explain what a prototype is.
A prototype is an object that other objects can use to implement property inheritance.
What is
Directory (?) [+]
first, what is Jquary?
Jquary is a browser-compatible JavaScript framework, is a lightweight JS library, its core philosophy is write Less,do more (write less, do more).
In short, jquary is a commonly used JavaScript statements
First of all, let a game be endowed with the gameplay must be combined with static and dynamic. Haha, people think I want to talk about the composition ... But actually I'm going to talk about JavaScript today) static stuff who wouldn't do it.
Last update: 2018-07-20I love the technology of technical rookie, in short, there is interest in writing code. Straight into the chase.Description1. Individual studies and experiments have learned that most websites or blogs that count visits should
What is a closure package? ——— > is a function, a function that can access data inside other functions.Chestnut One:function foo () { var a = 1;} function fn () { console.log (a); // error, because there is no access to A's }function foo () {
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