Ten practical script tools are actually copying the code to the IE Address Bar and running the following 10 practical
Browsing assistance
Tidy Read
The Code is as follows:
Javascript :( function () {var s = document. createElement ("script"); s.
In js, how does one remove repeated elements in a specified array? I opened the firebug console and spent 30 seconds thinking, writing 30 seconds. The result is as follows: (x is the target array, and y is the result after repeated elements are
The content is in html format, and the list part needs to display part of each item. Because the content is in html format, it is obviously inappropriate to take the first few characters of the content directly. However, if you directly remove all
Recently, javascript has been used for projects, but many functional codes are repeated. For example, sort javascript arrays.
Delete, select, and group array data.
So, later I was excited.
It's not enough.
Write an SQL library that can be applied
This is an article I saw in my blog last time. After testing, it is indeed more effective than jquery's $ (document ). ready (function (){....}) faster, and no problem in mainstream browsers such as ie and Firefox. This is an article I saw in the
For more information about data access and update in ExtJSStore, see. You can use add (Ext. data. Record [] records) or add (Ext. data. Record record) to add one or more records to the end of the store. For example:
The Code is as follows:
Var
JS events bind function code to solve browser compatibility, and now compatible with IE678FF Google
Mainly solved
Browser compatibility, now compatible with IE6 7 8 FF Google (nonsense)
In IE, this points to a problem.
Go directly to the code!
When you need a function, you must enter some form information. After the function is completed and submitted, this part of information cannot be modified again. The form contains TextBox, DropDownList, and CheckBox controls.
Application background
If you need to bind events with parameters and manually trigger events in js, refer. 1.html code
The Code is as follows:
Title 1Title 2Title 3Title 4P>
Content 1
Content 2
Content 3
Content 4
2
The defer attribute causes the page that references JQuery to report "The browser cannot open website xxx, the operation is aborted" error. JQuery is used in An aspx page, however, when the Internet Explorer 6 opens this page, "Internet Explorer
In Javascript, & amp; and | are used as conditions for judgment. They are very concise and may not be familiar to anyone who is not familiar with them. At last, I would like to add a friend here, which is very good. In general, & | is relatively
Recently I made an AJAX GridView to display data. Of course Jquery is the first popular choice. Reason: jquery is simple, compatible, and easily encapsulated. Let's talk a little bit about it. Let's start writing the Jquery plug-in now. There should
Since jQuery is used, the chain operations on it are very dependent, so that it is often difficult to use other libraries .. Although jQuery's use is gradually reduced (it is still used in projects, and the efficiency is high. I usually don't need
To speed up website loading, an important means is to pre-load an upstream website file during user browsing. There are two common methods to pre-load files: xhr and dynamic node insertion. Dynamic node insertion is the simplest and most extensive
This article is for reference only. If there are any deficiencies or errors, please do not hesitate to give us some advice. Here we will describe how to create a plug-in based on the jQuery plug-in production instance at the pop-up layer.
First, a
Sometimes, for reasons such as better advertising effects, users need to wait for a period of time before displaying the real code, which is helpful to relieve the pressure on the server.
The Code is as follows:
Please waitDownload
SetTimeout () is used here because all objects can be completely recycled to prevent the release from being failed due to reference between variables. It can be used as a safeguard. In principle, it will not be executed here. CollectGarbage ();
In javascript, it can be used to compare whether two data types are equal. If the two data types are different, the data will be compared after conversion.
The conversion rules are as follows:If the type of an operand is Boolean, convert it to
Project front-end files are separated from backend development. As long as backend development updates svn front-end js files and css files are updated, a js file such as AA is referenced previously. js. to reference the jquery library in the
This value of javascript is really inexplicable. I have always been dizzy. Maybe it is this, which makes most people feel that js is very inexplicable. After checking a large amount of information, I summarized the following three rules, which can
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