Some pages that are frequently used by AJAX are sometimes not dare to be refreshed, because after refreshing, you may see a very different page from the original one. I will not discuss whether to use AJAX in the case of a large number of page
The following example shows a simpler method:Save the Statistical Code to one file: file path:/config/counter. conf.The Statistical Code is as follows:Copy codeThe Code is as follows: We use StreamReader to read the file content, and the code will
According to the recommended program run under IE, indeed, the sorting time is very small.Copy codeThe Code is as follows:The native sort of Array. When it transmits a comparison function, it takes a lot of time because of the sort algorithms used
script home script home websites that collect various script learning materials, try to correct errors to create a high-quality script learning website. We provide game script resources, source code, software, asp, php, javascript, and other
complete JavaScript event listening instance (including comments) [Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to execute]AddEventListener is unavailable in IE, and attachEvent is used in IE,I am
A very good JavaScript debugging method has been found. Currently, four types of Object/Array/Function/String can be printed. The usage is the same as that of var_dump () in PHP, you only need to directly dump (variable name.Copy codeThe Code is as
For a long time (I am happy to say this here), js is "an embellishment that can accomplish very limited functions, such as form verification, the language itself has been used as a procedural language, making it difficult to complete complex
SetTimeout (script, millisecond); indicates the number of microseconds from which the code is run (only once)SetInterval (script, millisecond); is the number of microseconds to run the codeExample:1. Run OnceSeconds [Ctrl + A select all Note: If
Basic operation method:Document. frames ("frame_id" 2.16.doc ument. action;Here, frame_id is the id of the iframe to be operated on the parent page, and action is the related operation in the iframe.From this method, we can see that document. frames
All of the considerations here are the form of JSON strings returned by the server. For JSON objects encapsulated using JSONObject and Other plug-ins, this is also similar. I will not describe them here.Here we first provide a JSON string set, which
Generally, we obtain the event object as follows:Copy codeThe Code is as follows:Function getEvent (event ){Return event | window. event // IE: window. event} If no parameter exists, you can also write it as follows (non-IE: The event object is
Original Code: (in ie, windows. parent is not run in Firefox)Copy codeThe Code is as follows: Modify the Code: (both ie and Firefox are normal)Copy codeThe Code is as follows: Cause:In principle, the modified Code is the correct code, and the
Copy codeThe Code is as follows:/*** @ Author Supersha* @ QQ: 770104121.*/Var cssQuery = {// Parent: used to store the reference of the parent node of the current nodeParent: document,Select: function (selectorStr ){Var selectors = selectorStr.
Method 1: pure CSSAt present, there are many such solutions on the Internet (pure CSS ):Copy codeThe Code is as follows:Html {overflow: hidden ;}Body {height: 100%; overflow: auto ;}# Rightform form {position: absolute; right: 30px; top50px ;} This
In addition to the following code, import a jquery-1.4.4.min.js file where the recipient is dead ("ABC", "ABCDEF", "BCDEF") and has passed the test!Copy codeThe Code is as follows: Recipient: Check
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