Author: Chaomao Published: 2013-10-30 11:07 read: 15,827 recommendations: 157 original link [favorites]The first thing to explain is that I am not a master, at most or a half bucket of water, is into the JS door.There are some lessons to be learned,
It is believed that a lot of people who have a rudimentary understanding of JavaScript prototypes know that prototype,constructor,__proto__ these nouns, and to some extent, can use these objects and properties. It is even known that a method is
Prohibit extended object.preventextensions (obj);
var me = { name: "Xiaowtz"};console.log (Object.isextensible (Me));//true, objects are extensible object.preventextensions (me) by default ; After you suppress an object extension, you cannot
Script> varD=NewDate ();//Current Timealert (d); varD1=NewDate (1992,5, +);//define a time, month to add 1;alert (D1); varD2=d1.getfullyear ();//Take yearalert (D2); varD3=d1.getmonth ();//take the month, take out the less 1;alert (D3);
Fifteen jQuery social network sharing plug-ins (1)
Over the past few years, social media has become increasingly popular, allowing users to share music, videos, images, and even other docs documents on the Internet, which can also increase page
Basic JavaScript Array knowledge
Preface:
In fact, as a Java programmer, I have always been a little "dismissive" about JS programs. Many people must be like me. If they have other language basics, JS syntax will not bother to read, writing a
Replace () method in jQuery
This article mainly introduces the replace () method usage in jQuery. It analyzes the functions, definitions, and matching elements of the replace () method to replace the specified content. For more information, see
When
Examples of With statement usage in Javascript
This example describes the use of With statements in Javascript. Share it with you for your reference. The details are as follows:
?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
Adding a new method to the built-in object using the prototype attribute in Javascript
This example describes how to add a new method to a built-in object using the prototype attribute in Javascript. Share it with you for your reference. The
Usage of dynamic functions in javascript
This example describes how to use dynamic functions in javascript. Share it with you for your reference. The specific analysis is as follows:
?
1 2 3 4 5 6 7 8 9 10 11 12 13 14
Usage of attachEvent in javascript
This article mainly introduces the usage of attachEvent in javascript. Examples of how to bind events in javascript are analyzed. For more information, see
This example describes how to use attachEvent in
Javascript to implement navigation menu effects with a drop-down menu
This example describes how to implement the navigation menu of a menu with a drop-down menu in javascript. Share it with you for your reference. The specific implementation method
Javascript achieves simple provincial-municipal three-level linkage
This article shows you how to implement a simple provincial/municipal-level linkage effect using javascript, without the need to access backend servers, without Ajax or refreshing,
Summary of common javascript methods
1. JavaScript: write HTML output
The Code is as follows:
Document. write (" This is a heading ");
Document. write (" This is a paragraph ");
2. JavaScript: responds to events
The Code is as follows:
Javascript to implement drag-and-color and close Layer window instances
The example in this article describes how to implement drag-and-color and close layer windows in javascript. Share it with you for your reference. The specific analysis is as
Generate a verification code in js and directly judge on the front end
Generate a verification code in js and directly judge on the front end
?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 3
Javascript to add or subtract dates by month
JavaScript code example for date addition and subtraction. Because JavaScript does not have the AddDays method similar to C #, you need to write a function to implement date addition and subtraction. I
Example Analysis of Document hierarchies printed recursively using Javascript
This Document describes how to print Document hierarchies recursively in Javascript. Share it with you for your reference. The details are as follows:
?
1 2
Js achieves exquisite silver-gray vertical folding menu
The example in this article describes how js achieves exquisite silver-gray vertical bar folding menus. Share it with you for your reference. The specific implementation method is as follows:
?
Examples of inheritance and usage in JavaScript
This article analyzes the inheritance usage in JavaScript. Share it with you for your reference. The details are as follows:
?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
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