This weekend do not work, on their own dormitory do not finish before the JS online programming problem, met a question about the function of the argument, all of a sudden Meng Quan, because they have done most of the programming problems of the
Mainly used to button onmouseover, onmouseout, onclick events, the mouse moved to the button, the transparency of the button changes, remove the button transparency recovery. Click the button, the button is clicked background color change, click the
function A () { for (i=0;i<20;i++) { // No var i Here's I is global variable everyone can access } } function B () { for (i=0;i<3;i++) { //alert (i); I am also a global
Turn from: http://www.cnblogs.com/Darren_code/archive/2011/08/31/JavascripDesignPatterns.html
have been considering this month to share what things best, the original plan is to write some HTML5 in the content of JS or Ajax, but their ability to
Page load complete There are two kinds of events, one is ready, that the document structure has been loaded complete (not including pictures and other non-text media files), the second is the onload, indicating that the page contains pictures and
Using JavaScript to determine the Office version is useful in project development, by being an online Office editor in OA system, where we need to have Office Online editing tools that support multiple versions of Office, such as Office2003, 2007.
hasOwnProperty
To determine whether an object contains custom attributes rather than attributes on the prototype chain, we need to use the hasOwnProperty method that inherits from Object.prototype.
Note: It is not sufficient to determine whether a
sorting methods for arrays in JavaScript
The most used of course is the encapsulated sort () method.One: How the Sort () method is used.The sort method is not as easy to use as we think, not simply Arr.sort (), which requires us to define the
JavaScript Authority Guide Reading notes
The lexical structure of the first chapter
JavaScript is case-sensitive, while HTML is case-insensitive
The Unicode escape sequence is composed of/u as a prefix plus a 4-bit 16-digit number
Identifiers must
When you close the browser through JavaScript, "General" will pop up the system's default prompt box, prompts the user whether to close the browser, this can be solved by JavaScript, but IE6,IE7 solution is different, please see the following code.
Judge whether a string is all Chinese, and the comma, period, and so on, which are entered in the English state, will be distinguished by the following code:
SodinoArticle Listing 1. Scene 2. Regular Expression 13. Regular Expression 24. Troubleshoot problem 5. Regular Expression 36. Conclusion Scene
To intercept the following string for two {title:***,url:***}.
1 2 3 4 5
Ps:js can only use getElementById () to get the value of the Drop-down list box. ****
Now there is a id=test drop-down box, how to get the selected value.
Using JavaScript native methods and jquery methods separately
text1text2
Code
One: JavaScript
Design patterns are a set of experiences that have been reused, mature, categorized and experienced in countless combat designs. Design patterns are used to make the system code reusable, extensible, decoupled, easier to understand, and to ensure
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.