This series of blogs focuses on notes in the process of learning JavaScript Advanced Programming (third edition).A complete web-side JavaScript implementation should have three main components: The language core ECMAScript, the Document Object Model
Event object: The instant the event occurs, the location, the time, the mouse button, the node that is triggered, and so on, is packaged into an object that the system automatically passes to the first parameter of the event function."Example"
A. In usage
For...inEnumerates all enumerable properties of an object
Detecting Dom/bom Propertiesif ("onclick" in Elem) { //element supports Onclick}if ("onerror" in window) { //window supports onerror}
Detecting the
Previously, because of the needs of the project, we need to convert the string with Chinese into byte array and image data, and then pass it to the server side with binary data.Before, see online has the use of Array.prototype.map.call (str,
Today, I wrote a Spinbox plugin with JavaScript. Let's take a look at the effect:The usage is this:html lang="ZH-CN">head> meta charset="UTF-8"> meta name="viewport" content="Width=device-width, Initial-scale=1 "> title>Test HTML for the
I. BASIC formatIndent inRecommended 4 spaces per level, can be set to the editor tab = 4 spaces, automatic conversionSemicolonDo not omit the semicolon to prevent the ASI (auto-insert semicolon) errorLine widthEach line of code is less than 80
First, Strict mode1. ECMAScript5 introduced the concept of strict pattern (strict mode). The intent is to define a different parsing and execution pattern for JavaScript.2, the difference in strict mode:(1), some uncertain behavior will be processed.
Dom:document Object Model Document: HTML page Document object: page element Document Object model: definition in order to allow the program (JS) to manipulate the elements in the page Dom will think of the document as a tree, It also defines a
Create custom AngularJS commands: Part 4 transclude and restrict Introduction
In the 3rd articles in this series, I introduced how to pass parameters to external functions defined in commands in an isolated scope attribute (some tips are needed at
Html css -- learning of margin and padding, marginpaddingHttp://www.cnblogs.com/fengyv/p/3789333.html when you are learning margin and padding is not done, -- what his mother's padding, what his mother's margin. Haha, I didn't understand it at first,
Jquery determines whether the single-choice button radio is selected, jqueryradio
This example describes how jquery checks whether the single-choice button radio is selected. Share it with you for your reference. The details are as follows:
The
Jquery allows you to drag and drop the slider to select numbers.
This document describes how to select a number by dragging and dropping jquery. Share it with you for your reference. The details are as follows:
This is an exquisite and practical
What can we do with a colorful pseudo-element? (Conversion) Articles shared by others, found very good, decisive collection, shine
Pseudo element:beforeAnd:afterWhat you can do is amazing. For each element on the page, you have two elements that are
Use the console for Performance Testing
The built-in development tools of various browsers provide a console object. It mainly has two functions: displaying error information during webpage code running. Provides a command line interface to interact
Javascript outputs the current time in real time
The real-time display time on the webpage not only adds color to the webpage, but also helps the viewer master the current time. In order to improve the website development speed, the main code can be
JQuery remembers the username and password to enable automatic login next time. jquery automatically logs on
Jquery stores user names and passwords in cookies
You need to import jquery. js and jquery. cookie. js
test cookie User Name:
When the js plug-in sets innerHTML, the "unknown runtime error" solution is displayed in IE8. innerhtmlie8
This article describes how to resolve the "unknown runtime error" prompt in IE8 when the js plug-in sets innerHTML. Share it with you for
JQuery validation plug-in validation User Guide, jqueryvalidation
During website development, sometimes we need to verify that the information entered by the user meets our requirements, so we will verify the data submitted by the user. Verification
JQuery label editing plug-in Tagit User Guide, jquerytagit
I. Tagit plug-in Function
Improve website interaction and user experience. There are no other functions. You can replace it with an input text. However, text does not provide the prompt
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