Copy Code code as follows:
Document.writeln ("",
"i",
" name",
" filename",
" description",
" type number ")
for (i=0 i Document.writeln ("", I,
"", Navigator.plugins[i].name,
"", Navigator.plugins[i].filename,
"", Navigator.plugins[i].
Recently, some of the features of the project are being reconstructed, the front-end has basically overturned the original design, in the previous half of the accumulation of a new program. These days in the front of the refactoring and design,
Of course, the length of HTTP headers cannot be counted at request, so when the request packet length is at the maximum Transmission unit critical point, the additional HTTP headers can cause IP groupings, so there is a certain error.
closure demo Products 0 products 1 products 2 products 3 products 4
[Ctrl + A All SELECT Note: If the need to introduce external JS need to refresh to perform]
The above scenes are often encountered by beginners. Gets
The global variable is part of the Window object property, for example:
Copy Code code as follows:
var test = ' Test ';
alert (window.test);
the approximate order in which browsers render and manipulate HTML:
HTML parsing
Copy Code code as follows:
function Reportfilestatus (filespec)
{
var fso, s = filespec;
FSO = new ActiveXObject ("Scripting.FileSystemObject");
if (FSO). FileExists (filespec))
S + + "exists."
Else
s + + "doesn ' t exist";
return (s);
We know that the interaction between JavaScript and HTML is done through events, something that the user or the browser itself performs, such as Click, Mounseover, Load ..., and the function that responds to the event is called the event handler
Go to a company (company name does not say, people this set of questions may still need to use) interview, the scene 30 minutes to do a set of questions, one of them is this:
Require JS to write a function, the incoming form of the following URL
The first translation of technical articles, laughed!
Translation of the original:
Function.apply and Function.call in JavaScript
The first paragraph is slightly.
Each JavaScript function has a number of subordinate (attached) methods, including
You can measure how much you know about this knowledge.
In the title after I refer to the original Bo main article and comment on the topic analysis, we compete to shoot bricks.
The quiz:
1:
1 && 3
2:
1 && "Foo" | | 0
3:
1 | | "Foo" && 0
4:
(1,2,3)
5
Copy Code code as follows:
var picarry = {};
var lnkarry = {};
var ttlarry = {};
function Fixcode (str) {
Return str.replace ("'", "=");
}
var T=document.getelementbyid ("Pictable");
var rl=t.rows.length;
var baseu= document.
The most characteristic and confusing function in JavaScript is the one that counts.
Let's take a look at common operations
Copy Code code as follows:
function doit () {
.....
}
Doit ();
Functions in JavaScript we can
Way 1,splice
Copy Code code as follows:
var ary = [1,2,3,4];
Ary.splice (0,ary.length);
Console.log (ary); The output [], an empty array, is emptied
Method 2,length assignment to 0
This is interesting, and other languages
This time using the original code's organizational structure to strengthen the function, at present, there are two small problems, the first is IE6 the custom pop-up layer will appear can not cover the Select Case, has not been added to the
Magnifier is not a difficult effect, just because some accurate numerical calculation is involved, it is more cumbersome. In the coming days, I will write an article about the JavaScript Magnifier series on a regular basis, each time speaking a
DescriptionWriting this is mainly to exercise their own, and no practical significance.
Each browser test results in a different data. For example, I use the chrome test General fast sort will be fastest, IE is based on the length of the array is
Copy code code as follows:
/*
* Get time difference, the date format is year-month-day hour: minutes: seconds or Year/month/day hours: minutes: seconds
* in which, the date of year is full format, for example: 2010-10-12 01:00:00
*
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.