It is recommended that you take a look at the important knowledge of JavaScript to update the http://developer.mozilla.org/en/... _ Language_Resources
Http://developer.mozilla.org/en/docs/About_JavaScript
Http://developer.mozilla.org/en/docs/New_
$ () JS tips when we write javascript, we will often use the document. getElementById () method. This long string is easy to write errors, and getElementById is case sensitive.
Prototype. one method advocated in js is to use $ () for short. With
The solution to the BUG of the IE cache policy today is the high production time of the bug.
When parsing innerHTML, IE ignores the Cache Policy and simply loads images repeatedly. See the following code:
Javascript personal notes (unorganized, messy) ================== show and hide elements ======================
Visibility is faster than Display
It will create interesting effects when the picture is hidden. There are two ways to achieve this:
Use javascript to implement the spacing between the text box and & quot; Select & quot; button
[Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to execute]
Document Processing series-update at any time 1. document collection Auxiliary Tools
This is a customized tool for editing a website. The CMS only supports
The HTML of collected articles is often varied, so this tool is needed.
document
Implement the javascript code for the SELECT statement on a yearly, monthly, and quarterly basis
select a report type Monthly Report quarterly Report semi-annually report Annual Report script function GetValue () {var
Set and read the javascript code of the cookie
function setcookie (name, value) {// set the cookie document with the name and value as the value. cookie = name + "=" + value document. location. reload ();} function setCookie () {document. cookie = "
IEautocompleteinternetexplorersautocomplete IE autocompleteinternet explorer's autocomplete
Frequently people are confused by the various dropdown quick-complete boxes in IE. most people lump them all under the term "AutoComplete. "There are
Syntaxhighlighter usage Placing the code
Place your code on the page and surround it
tag. Set name attribute to code and class attribute to one of the language aliases you wish to use. ... some code here ...NOTE: One important thing to watch out
JavaScript programming introduces namespace Methods JavaScript code is generally the most common syntax format is to define function xxx () {/* code... */}, there are often a lot of such function definitions. Function names are prone to conflicts,
Restrictions on input boxes implemented by javascrui; 1. dotted box when the cancel button is pressed
Add the attribute value hideFocus or HideFocus = true in input.
2. Read-only text box content
Add the attribute value readonly in input.
3.
Optimize web pages to quickly display our web pages 1. problems we need to solve
A. Reduce the number of HTTP requests.
What are the benefits of reducing the number of HTTP requests:
Reduce the establishment of servers and clients and eliminate the
Several operators in javascript | are calculated as follows: a meaningful return occurs from the first one; otherwise, the last expression is returned (not necessarily a Boolean value );
& The operation is like this: starting from the first, a
I want to make some new ideas-the level of the three-dimensional square is limited.
what you hear no connection black and white This is true [Ctrl + A select all Note: If you need to introduce external Js, You need to
Javascript code for getting the value of the current row
Script function getCurRowNum (elm) {alert ('current row num is: '+ elm. parentNode. parentNode. rowIndex);} script [Ctrl + A select all Note: If you need to introduce external
Javascript solves the bug that IE does not render. Sometimes, you will find that in some JS applications, if CSS re-rendering is involved (that is, the page style needs to be updated), IE will remain unchanged.
Now you need to re-render IE:
Javascript injection tips by kostis90gr
Translation: Ghost [S.S. T]
This article has been published in the June publication of the black line of defense. The copyright belongs to the black line of defense and the Script Security Team. repost it to
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