Window.name transmission technology, was originally
Thomas FrankIt was invented to address some of the disadvantages of cookies (4 Kb per domain limit, data can only be strings, set and get the complexity of cookie syntax, and so on) (see Text in
Sample code:
Don't eat Apple
Try to use the method of the DOM of the Consortium
Previously accessed objects might be:
Document.all.apple or Apple
It should now be used:
document.getElementById ("Apple") accesses an object with an ID, and
The number of occurrences of an element with a value equal to item in the arr of a statistic array
function count (arr, item) {
var count = 0;
Arr.foreach (function (e) {
//e is every element in arr, equal to item count+1
e =
1.var myObject = {};
2.function MyObject ()
{
....
}
3.var myObject = function () {};
For the latter two methods, we can also add parameters, which is similar to a constructor with parameters.
For example:
function MyObject (msg)
{
Alert
test for..
In
[Ctrl + A All SELECT Note: If the need to introduce external JS need to refresh to perform]
test anchor Jump target object
[Ctrl + A All SELECT Note: If the need to introduce external
We know that in JS, there is no concept of the class. All instance objects of a class inherit properties from the same prototype object, so the prototype object is the core of the class.
A class is an abstraction of an object, and an object is a
An object that window.navigator to reflect the browser and its functionality information.
Detect browser version information
function Getbrowserinfo () {
var Sys = {};
var ua = Window.navigator.userAgent.toLowerCase ();
var re
There are several ways to add events to DOM elements during the development process:
Write some nice button first.
Introduce jquery
The effect is as follows:
1, directly in the BTN1 use of onclick, this way called
For example, a list of indeterminate lengths that changes the background when the mouse passes through a bar.
untitled page 1th record 2nd record 3rd record 4th record 5th record 6th record
[Ctrl + A All SELECT Note:
This article introduces the use of JS to achieve the Drop-down menu can choose to move and achieve menu ordering, code simple to understand, with reference value, first show you the effect of the picture, feel still very satisfied please refer to
Often in JS used in the array, such as multiple names of the same input, if dynamically generated, the submission needs to determine whether it is an array.
if (document.mylist.length!= "undefined") {} This usage is incorrect.
The correct is if
The direct amount of the function, which is useful for functions that are used only once and need not be named. The following example, which has the fact function name, is used only as a self invocation.
Copy Code code as follows:
Chrome is normal, but the IE interface is messy, chromeieBackground: there are always some minor problems in project practice, especially many IE
The Chrome page is normal, and the IE interface is messy.Cause Analysis
1. The first thing that comes
The Image Upload Frame delay Problem in the ueditor plug-in chrome,
Recently, when the ueditor plug-in was used in the project to edit texts online, it was found that the Image Upload bullet box of this plug-in was very delayed in the chrome
There are many website icons, so it is slow to open for the first time. How can this problem be solved ?, Website icon for the first timeBackground
During project development, you may encounter a website with a special multi-graphic icon in the
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