The following uses case type = "text" as an example:
CopyCodeThe Code is as follows:
By calling the refresh method of JSMethod 1Copy codeThe Code is as follows: function refresh (){VaR v = Document. Forms [0]. elements;For (VAR I = 0; I
However, a problem was found in the Chrome browser during a cross-browser test. The tester found that (see figure 1), when sorting by a column in chrome, if the sorting values of the two rows are the same, chrome will not change the order of the two
1. extplorer
Extplorer is a File Manager developed based on PHP and extjs. You can use it to browse files and directories on the server. Edit, copy, move, and delete files. Search, upload, and delete files. Create new files and directories.
The premise is to install the firebug plug-ins and the aptanadebugger plug-ins. They are as follows:
Http://getfirebug.com/releases/firebug/1.2/firebug-1.2.0.xpi
Http://firefox.aptana.com/update/aptanadebugger.xpi
Start debugging:
Select the
The problem was found during the test today. When the month in the database is 09, the problem occurs. After converting it with parseint, it will become 0. I am puzzled. Tested for a long time and did not find me
CodeIn the question, I searched
1. JavaScript to get the URL "? "Following parameters:
VaR query = Window. Location. Search. substring (1 );VaR pairs = query. Split ("&");
2. The default function of IE browser is disabled. (The movement of the tab key in the address bar is
CopyCode The Code is as follows: array. Prototype. arrayinsertafter = function (Num, OBJ)
{
VaR temparr = new array ();
VaR L = This. length;
For (VAR I = 0; I {
Temparr. Push (this. Shift ());
}
L = temparr. length;
For (VAR I = 0; I {
This. Push
& | In jquery
Source codeBecause I do not have a system to learn JS, I can only make a rough understanding of myself. I hope you can give me some advice.
A rough understanding is as follows:
A () & B (): If true is returned after a () is
Use JavaScript to get the mouse position:
CopyCode The Code is as follows: function mouseposition (EV ){
If (EV. pagex | eV. Pagey ){
Return {
X: eV. pagex,
Y: eV. Pagey};}Return {X: eV. clientx + document. Body. scrollleft-document. Body.
Stringobject. charat (INDEX) method: returns the character at the specified index position.
Stringobject. slice (START, [end]) and stringobject. the substring (START, [end]) method accepts two parameters, namely the start position and end position
CopyCode The Code is as follows: // The automobile factory in 1960s
VaR ocar = new object;
Ocar. color = "black ";
Ocar. Doors = 2;
Ocar. pinpai = "Liberation ";
Ocar. showpinpai = function ()
{
Alert (this. pinpai); // a production line is required
ArticleDirectory
Attribute of an array object
The array of JavaScript is actually an object. It converts the subscript of the array into a string and uses it as an attribute. Therefore, it is obviously slower than the real array, but
View
Code , Do not speak:
Copy code The Code is as follows: var I = arr. length;
While (I --)
{
// Write something?
}
Above is Google array. jsProgramCode to be improved. Think about why I -- when I is 0, the while loop is over?
The following
The method used for parsing is generally eval or new function. Currently, IE8 and Firefox3.1 have built-in native JSON objects (it is said that there will be a certain performance improvement ). In actual use, how can we choose from these three
I personally think Ajax is not good for Ajax! Isn't JavaScript ideal for processing on the client?
Copy codeThe Code is as follows: function Timer (span)
{
Var tmp = new Date ();
Var milsecs = Date. parse (tmp. getMonth () + "-" + tmp. getDay () + "-
JavaScript itself, as a simple language, is just as dizzy with the variable scope issue, mainly because of the existence of JavaScript closures. This article does not explain in depth the scope of JavaScript variables (in fact, I am not able to talk
This article is a collection of scripts. You are welcome to reprint this article.
Copy codeThe Code is as follows: function controlImg (ele, w, h ){
Var c = ele. getElementsByTagName ("img ");
For (var I = 0; I Var w0 = c [I]. clientWidth, h0 = c [I]
/* Cookie Library -- "Night of the Living Cookie" Version (25-Jul-96)
2 Association Friends Computer Information Technology Co., Ltd., tu juwen geovindu@163.com exchange with each other
3 Written by: Bill Dortch, hIdaho Design
4 The following
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.