JS calculates the number of days for two different dates
Function getDays (strDateStart, strDateEnd) {var strSeparator = "-"; // Date delimiter var oDate1; var oDate2; var iDays; oDate1 = strDateStart. split (strSeparator); oDate2 = strDateEnd.
Regular Expressions in js
Detailed explanation of Regular Expressions
Introduction
In short, regular expressions are a powerful tool for pattern matching and replacement. Its functions are as follows:
Test a mode of a string. For example, you can
Comparison of three methods for starting JavaScript calls on Html5 pages
Comparison of three methods for starting JavaScript calls on Html5 pages
Beautiful Life of the sun and fire god (http://blog.csdn.net/opengl_es)
This article follows the
JSON is used in ASP. NET to facilitate data exchange between the foreground and the background.
I. the foreground requests data from the background
When loading a page, you sometimes need to initialize some forms. In this case, you can use the
Best practices for Javascript inheritance
What is inheritance?
Inheritance is the most significant feature of object-oriented systems. Inheritance is to derive a new class from an existing class. The new class can absorb the data attributes and
Construct Javascript-based mobile CMS-add slide
Be interested inMobile CMSAfter some discussions, we think it is important to unify the RESTful API. However, in the recent continuous network disconnection, another power failure occurred, and the API
Jquery common events (sorting)
Jquery events
(1) event list.
1. blur () is triggered when the focus is lost. Including clicking the left button and clicking the TAB key to exit.
2. change () when the element gets the focus, the value change is
Seamless scrolling by writing jQuery plug-ins by yourselfFirst, let's look at the html skeleton as follows: copy the Code 111 222 333 the copy code structure is simple and clear, nothing to say. The implementation principle is as follows:
Js controls the interval between clicking the button again to prevent repeated submission. js Interval
The html is as follows:
Verification Code cannot see clearly, for another
Button to be repeatedly submitted within 30 seconds
The
About js eval ScopeLet's briefly talk about how to globally eval a code. Run var x = 1; (function () {eval ('var x = 123; ') ;}) (); console. log (x); this code gets 1 instead of 123. If you want to make the code executed by eval global, there are
Js uses the removeChild method to dynamically Delete the div element, removechilddiv
During user search, the search results must be dynamically loaded and displayed, so those html elements must be dynamically generated by Ajax. When the user opens
How to deal with the new Date () Problem under ie8, dateie8
For the setDate () Problem in IE8, open a browser and prompt that the object does not support this problem. How can this problem be solved?
Try to find the webpage or plug-in
Three methods of JavaScript numeric conversion and three methods of javascript
In JavaScript, there are three ways to convert values:
1. Number (param) function: param can be used for any data type.
1.1 param is a Boolean value. true and false are
Js screen lock solution is implemented by encapsulating $. ajax.
Jquery plug-in source code:
/*** For $. ajax is encapsulated to add the lock function * isAsync for asynchronous requests. The default value is true * isLock for lock, and the default
Conversion Between the 10th and 62th in javascript, javascript62
function string10to62(number) { var chars = '0123456789abcdefghigklmnopqrstuvwxyzABCDEFGHIGKLMNOPQRSTUVWXYZ'.split(''), radix = chars.length, qutient = +number, arr = []; do
JavaScript Serializer serialization time processing example: serializer serialization
After the JavaScriptSerializer serialization time, the time will be serialized into the native ghost data, so I checked the check material and sat down the record.
Jquery Learning (3) Selector
1. The most important thing in Jquery is the selector.
Learning points:1. Simple Selector2. Advanced Selector3. Advanced Selector
① Simple selector.
The simplest is the most commonly used, and the most commonly used is
JQuery_review: use $. getScript () and $. getJSON to perform asynchronous information interaction with the server.JQuery also provides two very practical methods: $. getScript () and $. getJSON (). These two methods are very important. Suppose we
Javascript implements data structure: clue Binary TreeTraversing a binary tree is to arrange the nodes in the tree into a linear sequence according to certain rules, that is, to linearly operate the non-linear structure. How can we find the direct
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