The event of ZeptoCan be combined with an explanation of the previous JavaScript event-native Event Basics (i) Comprehensive considerationThe source is not a table, GitHub and the Chinese site can be down to the latest version of the Zepto. The
This section highlights: 1. Event-handling mechanisms for intervention systems (i) DOM Event flow(ii) Stop event bubbling(iii) default behavior for blocking events1. event handling mechanism of the intervention System (i) DOM event flowThe DOM model
Anonymous functions are functions that do not have a function name. This article mainly introduces JavaScript self-executing anonymous function (function () {}) The principle of the analysis of the relevant information, the need for friends can
Get elements by IDIn the Web page we first find the label and then proceed with the ID.Grammar:document.getElementById ("id")Example:old header "Old Header" has been modified to "Hello world!!!". JavaScript Basics getElementById
1, use typeof bar = = = "Object" to judge bar is not an object of the potential disadvantages of God horse? How to avoid this kind of malpractice? Let obj = {};let arr = [];console.log (typeof obj = = = ' object '); Trueconsole.log (typeof arr = =
1. Iterate through an obj attribute to an arrayvar a=[]; For (A[a.length] in obj); return A;At first glance may be more Mongolian, but careful analysis is not difficult to understand. The common usage is for (var key in obj), where key is initially
Closures (closure) are a difficult and unique feature of the JavaScript language, and many advanced applications rely on closures.The scope of a variableTo understand closures, you must first understand the special variable scope of JavaScript.The
function return valueThe function return value is the opposite of the function argument, and the function parameter is that we can pass something into the function, and the function return value is the function that can transfer something to the
first, PrefaceWe understand the JavaScript plugin through the "WWW" principle.The first W "what"-what is it? What is a plugin, I do not copy the abstract concept of the book, my personal simple understanding is that can facilitate the implementation
first, PrefaceThe syntax for the regular expression itself is not too much to introduce here (see http://www.php100.com/manual/unze.html for details), which simply explains the use of several methods related to JavaScript and regular expressions.Ii.
A brief description of JavaScript scoped closuresScopeThe general level of technology is limited, there is nothing wrong, I hope you correct.Scopes are the scopes in which variables Work. Scopes include global scopes, function scopes at Block-level
The reason for the expansion of a limited queue is that the queues in life are usually attached with priority, such as queuing up for tickets, the general elderly and the military will have a priority limit.Implementation: inherit the normal queue
Gihtub Blog AddressA linked list is a non-sequential, non-sequential storage structure on a physical storage unit that can either represent a linear structure or represent a nonlinear structure, and the logical order of the data elements is achieved
I. Lexical structure1, JS inside the case-sensitive2. Comments are divided into two categories://single-line comment/* multiline comment */3, the literal quantity (direct quantity Literal)12//numeric number"hello" ' Hello '//stringTrue
JavaScript-based microblog publishing information case, javascript publishing information
Now there are a lot of results similar to posting on Weibo. Below is a small case of posting information similar to Weibo written in JavaScript.
Weibo
Adaptive center, div adaptive Center
1. Center the form
position: absolute; top: 0; right: 0; bottom: 0; left: 0; margin: auto; /*height: 50px; width: 165px; */
Analysis:
Position: absolute | fixed );
[Absolute: the size of the window is determined
Build a blog Based on Hexo and Github and build hexogithub
Build your own blog.Preparations
Make sure that you have downloaded and installed node and npm on your computer. To check whether the installation is successful, you only need to enter the
Use css to draw triangles and css to draw triangles
I saw some questions asking how to draw triangles with css.
As we all know, many images can be split into triangles, so a lot of interesting shapes can be drawn by drawing triangles.
The
Frontend practice summary and practice summary1. Front-end basic box model location (relatively absolute) browser rendering Order (from top down, from outside to inside; if there is width inside, then from inside, if the div does not set the width,
Use background image code and background image code
click me
. U-btn {background: url (images/btn.png) no-repeat 0 0 ;}. u-btn {background: url (images/sprite.png) no-repeat 0-50px ;}
Merge Images
What is a Sprite puzzle:
Benefits of
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