I. Table row number problem
Now that you want to display the date table, you first need to know how many rows the table has, the number of columns that have been determined, from Sunday (the 1th in the calendar is Sunday) to the week of Children's
Recently this time because every day to modify the site, for the site to do special effects, so see a lot of JS contact events, they will only use a small part of the time is also more chaotic, and now the system of sorting, hereby share to the
First, charge
1, everything (reference type) is an object, the object is a collection of attributes.
2, a function is an object, but a function is not like an array-you can say that an array is a kind of object, because the array is like a subset
Basic version
From our usual experience in the Internet, the verification code is generally four digits, composed of numbers and letters.Then the landlord will lead us step-by-step with JavaScript to make a verification code script!First give the
Links in the page in addition to the normal way, if you use JavaScript, there are many ways, here are some ways to use JavaScript, open the link:
1. Open the link using the window's Open method, which opens the link in the development page, and can
An array to repeat is a common requirement, and we temporarily consider the same type of array to repeat. The main reason is to clear the thinking and consider the performance. The following methods, the basic online have, here is simply summed up.
In the previous article http://www.jb51.net/article/83504.htm, user authentication was done with JavaScript, but the password was not validated, this time this feature was appended and implemented in JavaScript and jquery, respectively.
A. Key code
Most OO languages support two types of inheritance: interface inheritance and implementation inheritance, while ECMAScript cannot implement interface inheritance, ECMAScript only supports implementation inheritance, and its implementation
JavaScript language design is not rigorous, many places will be careless error.
For example, consider the following scenario.
Now, we want to determine whether a global object myobj exists, and if not, declare it. The algorithms described in
Obviously, the API is to allow mobile programmers to use JavaScript to invoke the vibration function of the phone, and to set the mode and length of vibration.Determine the browser's support for the vibration API
A good habit is to check your
One, JavaScript scope is divided into function blocks, not as if, while, for.
Second, JavaScript compiles the scope of a real variable by precompiling the entire script file (analyzing the declarative part of the script file, including
JavaScript as an object-oriented language (JS is object-based), you can implement inheritance is essential, but because it does not have the concept of class, so does not like the real object-oriented programming language through the class
A function is an event-driven or reusable block of code that executes when it is invoked. This article focuses on JS basic knowledge of the blind spot summary function.
Arguments object in a function
There is a arguments inside each function that
The project needs to implement a Click button Copy link function, the Internet to see several plug-ins, Zeroclipboard is implemented through the Flash copy function, as more and more proposed to abolish flash, can be achieved through JS replication
Principle:
1, JS dynamic Create div, specify class class set different background chart style to show different snowflakes effect.
2. JS gets the created div and changes its Top property value, and deletes the move div when the height of the drop
CSS selector, cssCSS Selector[Wildcard character selection]* The asterisk selector matches every element on the page, but I suggest you never use it in code reproduction. It brings a lot of unnecessary burden to the browser. * {Margin: 0; padding: 0
Js supports table filtering and js table filtering.
This application has two main implementations:
1. The naming relationship between the table id and the class
See the figure: Associate the group name with the personal information table.
HTML
Basic usage example of a JavaScript string object (string), javascriptstring
This example describes the basic usage of a JavaScript string object (string. We will share this with you for your reference. The details are as follows:
1. Get the length
Native js implements holiday time countdown and js holiday countdown
Knowledge points
1. Implementation principle:
End Time-current time = Time Difference
The time difference between the current time and one second is naturally less than one second.
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