In the long history of mankind, it is difficult to find the second field, which is composed of simple logic and abstract symbols. It has such a huge amount of information and rich content. In a sense, when you open this book, you have entered an
When processing the operation content in Javascript, if it is not an integer, some minor problems may occur, such as the following formula: var result = 10031019.05 + 500-10000000.15; Result = 31518.900000000372, the main reason is that JavaScript
CompileProgramThe key is that the program is written to people, not to computers. If you can understand that others may read your JavaScript, you will write more clearly.Code. The clearer the code, the more difficult it is to make mistakes. Clever
We know that JS variables should be defined by VAR, for example:
VaRA;
This definition only defines the variable name, but does not give the initial value. However, JS automatically assigns the undefined initial value during compilation. If you
Javascript is object-based
Programming Language . From window to document, from method to class, from object to array are all objects.
Let's take a look at the JSON (JavaScript Object Notation) object. JSON is a type of data exchange format
Function
Checkchinese (STR ){
VaR
RE1
=
New
Regexp (
"
^ [\ U4e00-\ ufa29] * $
"
)
//
Range of Chinese Characters
VaR
Re2
=
New
Regexp (
"
^ [\ Ue7c7-\ ue7f3] * $
"
)
VaR
Str
=
Str.
The purpose of refreshing the verification code using JavaScript is to re-obtain the verification code without refreshing the page.
JSCode:
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->
When iscroll is used on mobile, touch event binding is enabled by default, because touch events are very sensitive. If you touch the connection with your finger, the browser will open the connection by default if you slide the link. In this way,
If you want to swap the values of two variables, you do not want to use the intermediate quantity. I used the method to process the arguments attribute of the function.
Function Exchange (a, B) {var ARGs = arguments; ARGs = []. slice. call (ARGs ).
There have been many brute-force databases recently, and password security has become a major issue! How can we avoid simple passwords? Still thinking about passwords? No
I have prepared a password generation tool consisting of 0-9 and a-k English
We have made another wheel. repeating the wheel requires advantages or no value. Easy to use and convenient. Only 5 rowsCodeYou can generate a token.
The input date is already supported by the native controls opera and chrome. The logic of the
I haven't read the regular expression for a long time. I happen to use it today. I just learned how to read a book.
I used to send regular expressions for beginners without worry. Now I have added the Group to provide download improvements.
I.
Recently, I learned about. NET and. Net Ajax and found that AJAX cannot save the view status after the button is submitted. I thought about it and can use URL, cookies, or hidden textbox to pass it.The URL and textbox methods are relatively simple
When debugging JS, you need to use a large number of alert statements, which is not only inefficient, but also unpleasant when you play the confirmation window. Search online todayArticleWhen I checked it, I found a cool javascript: Blackbird. I
I have always thought that agent is a good choice for website navigation and help. Unfortunately, Ms agent only supports IE, and it seems that the loading speed is not very fast. After analysis, I think javascript can definitely be used, I used to
Object-oriented and Object-based
Almost every developer has development experience in object-oriented languages (such as C ++, C #, and Java. In traditional object-oriented languages, there are two very important concepts: classes and instances.
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