Using the prototype property of each object in JavaScript, we can add our own methods and properties to the built-in objects in JavaScript.Here's how we use this property to add three methods to a String object: Trim,ltrim,rtrim (acting like a
When Internet connectivity is ubiquitous today, we suddenly have another requirement, offline Web. Gmail, Google Reader, Zoho these excellent Web apps all support offline use, thanks to Google Gears. While the real offline Web relies on HTML 5, the
anonymous function: A function without a name;Closures: Functions that can access variables in a function scope;
An anonymous function
normal function
box () { //function name is box;
Return ' Lee ';
Box ();
Node Object properties
childnodes-returns the node list of nodes to child nodes
Firstchild-returns the first child node of the node.Lastchild-returns the last child node of a node.
nextsibling-returns the sibling node immediately following the
regular expression to determine the number of the operator JS Code modified version: http://www.jb51.net/article/31563.htm
When doing a Web project, sometimes need to according to the user's input cell phone number to judge the operator is mobile,
Focus Events
These events are generally used in conjunction with the Document.hasfocus () method and the Document.activeelement property. The main are:
Blur: Element loses focus, does not bubble;Domfocusin: With the HTML event focus, abandoned in
Object is a type that we use frequently in JavaScript, and all objects in JS are inherited from object objects. Although we usually simply use object objects to store data and not use too many other features, object objects actually contain many
Let's look at two questions:
0.1 + 0.2 = 0.3; False9999999999999999 = 10000000000000000; True
The first problem is the problem of decimal precision, which has been discussed in many blogs in the industry. The second problem is that last year, the
Javascript| Menu | design | Web page | When the page is made, in order to better organize the information, so that the display of information classification clear, Level clear, web page makers often do their best. Commonly used methods are useful
Article Introduction: jquery is currently the most widely used JavaScript library of functions. According to statistics, the world's top 1 million websites, 46% use jquery, far more than other libraries. Microsoft even took jquery as their official
JavaScript has a bad reputation on the internet, but it's hard to find another language like it's so dynamic, so widely used, so rooted in our lives. Its low learning threshold makes many people call it a pre-school scripting language, and another
Concept
Before you mention the above concepts, first of all, let's talk about the implied parameters of functions in javascript: arguments
Arguments
The object represents the function being executed and the arguments of the function that called it.
[
javascript| Tutorial
Object-based JavaScript language
The JavaScript language is object-based (object-based) rather than object-oriented (object-oriented). It is said to be an object-based language, mainly because it does not provide many features
javascript|xml| Create
You can use the FileSystemObject (FSO) object or use the XML Document Object Model (DOM) directly on the client to create an XML file. If the FSO is used, the client must install Window Script 5.5, and using the XML DOM
HTML Basics |javascript| Notes | tutorials
Url
If the FTP server is using the default port 23, it is also like HTTP for 801, do not write;
The URL is case sensitive;
If the base URL is not explicitly set, the relative URL uses the directory path
One, basic data type: number string Boolean NaN undefindReference data type: (Object data type) object (function data type) functionNumber: Positive, negative, 0NaN: is not equal;=/is the meaning of assignment;==/is to judge whether the values of
CSS3 animation (1): 5 types of pre-loaded animation effects and 35 types of CSS
Animation effect:
Preload Animation 1: Double Rotation
Rotate circles in two different directions. We define a CSS code for the rotation speed of the inner ring, that is,
Angular implements Form Verification and submission. angular forms
In this example, the Angular framework is used to implement simple form verification.
I. html Structure
1. Using bootstrap to quickly write a simple formThe main code is as follows:
Explanation and Application of mini-program WebSocket and websocket
Mini-program WebSocket
Instance effect:
What I will talk about todayWebSocketInterface and usage in small programs.
WebSocketWhat is it (brief description)
OfWebSocketInterface and
Explanation of the two-way Data Binding Mechanism in AngularJS framework [reduce the amount of development code that needs to be repeated] And angularjs framework
This article describes the AngularJS Framework's two-way data binding mechanism. We
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