When we write a Web page, we need to introduce a lot of JavaScript script files and CSS style files, especially when the site is in great demand, the demand for the script is also increased, so that the site's performance will be greatly compromised,
JavaScript saves page state information with cookies
Overview
In the case of Java Web development, when a form is submitted with an HTML tag, the contents of a label such as SELECT, input, and so on are restored to the original state, and then the
Location is one of the BOM objects that provides information about the documents loaded in the current window, as well as some navigational features. In fact, the location object is the property of the Window object and the property of the Document
Event bindings are divided into two types: traditional event bindings (inline model, scripting model), and modern event binding (DOM2 level model). Modern event binding provides us with more powerful and convenient functionality based on traditional
Prototype
Each function we create has a prototype (prototype) attribute, which is an object that contains properties and methods that can be shared by all instances of a particular type. Logically it is understood that prototype is the prototype
Many people know that process-oriented and object-oriented software development ideas, as well as our JavaScript, have both development patterns. Today we look at object-oriented things in JavaScript.
An object-oriented language has a very important
http://blog.csdn.net/yansanhu/article/details/5413360
This article describes how to read and modify URLs using JavaScript location objects. How to reload or refresh a page.JavaScript provides a number of ways to access the URL that the current user
Ten, Layer
1. Placing external files in the layer (External files Within Layers)
Q: Can i display the external HTML file as part of the page?
A: OK, you can do this by using the following method: Layer or Ilayer tag, src=filename. HTM (in Netscape4)
15, cascading style sheet (CSS)
1. Apply style sheet (applying stylesheets)
Q: How do I apply a different style sheet on the page?
A: The browser loads the style sheet (CSS file) through one or more link commands (mainly in the head area of the
the first part, the introduction of async-await in ES7
Original address http://www.cnblogs.com/wangfupeng1988/p/6532734.html without the author's permission, may not reprint ~
Before the introduction of generator asynchronous processing, can be
Seven, Ajax problems
1. Ajax: Asynchronous JavaScript and XML (ajax:asynchronous JavaScript and XML)
Q: What is the meaning of the popular word ajax?
a: The phrase Ajax was originally proposed by Jesse James Garrett, co-founder of Adaptive Path.
Front-End development of the process. You might use an IFrame to nest HTML pages.
When we pass parameters to the child iframe in the parent IFRAME.We can set the parameter object to be a member variable of the window object of the subclass IFrame.
Create dynamic functions (implemented using function pointers in C + +)var functionname = new Function (argument1,..., lastargument);DescriptionAll parameters must be of a string type, and the last parameter must be the functional program code of
This function is the University of their own use of pure JavaScript written, without the help of jquery, hehe, looks a bit cumbersome, but at that time vaguely remember the realization of the function of their own good after the happy one, from now
Note: JavaScript's regular pattern is not quoted, but is/starts with/ends.
Output:
20131024/2343242344435.png
Reference: http://www.cainiao8.com/web/js_note/js_regular_expression_blueidea.html#_Toc213927719
------------------------
/* Written by Jonathan Snook, Http://www.snook.ca/jonathan add-ons by Robert Nyman, http://www.robertnyman.com Author s Ays "The credit comment are all it takes, no license.
Go crazy with it!:-) " From
I. Supplementary knowledge Argument.callee
First look at a classic factorial example (recursive implementation, of course, you can also use Iteration ~):
We used a recursive algorithm. As you can see, the execution of this function is tightly
Remove spaces on both sides of the string String.prototype.trim = function () { var re =/(^\s*) | (
\s*) $/g;
return This.replace (Re, "");} Deletes an element in an array Array.prototype.remove = function (i) { var o = this[i]; for (
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