I. Numerical Conversion
Number (), parseint (), and parsefloat ()
1. Number () function conversion rules: applicable to any data type.
Boolean values true and false are converted to 1 and 0 respectively;
The value is just a simple graph transfer
Sometimes the self-built form in JSP is a little poor, so it is not as handy as the pure form. For example, the form in JSP cannot define the id value, that is, the form cannot be submitted through JS, which is a big failure. The JSP form is always
// Check whether the value exists and the returned position exists; otherwise, return-1array. prototype. _ in = function (FIND) {for (I = 0; I = this. length) return this; var tmp1 = This [I]; var tmp2 = This [I + UD]; this [I] = tmp2; this [I + UD]
Like many other programming languages, JavaScript is also written in text format, which consists of statements (statements), statement blocks (blocks), and comments. A block is a set of statements that are composed of correlated statements. In a
After years of development, teaching, and writing of non-abrupt JavaScript, I have discovered some of the following guidelines. I hope they will help you understand "why is it better to design and execute JavaScript like this. These rules have
JS and Other proportional scaling images. This function is very practical. When a webpage loads a large image, it will often deform a webpage, and the page becomes ugly, so we thought of using js to control images that are out of a certain range to
Javascript advanced training-custom object
I. Overview
In Java, we can define our own classes and create objects based on these classes for use. In JavaScript, we can also define our own classes, for example, define the user class and hashtable
Right-click the screen cheating webpage or
Add background music to webpagesIE: NS: *. Mid: The MIDI format file of your background music
Automatically open and close windows
connection
The Browser fails to save the page, so that the user
Right-click a single JS page to prohibit the menu-to prevent the use of website information from being stolen
Prohibit Copying on webpages is mainly implemented by JavaScript.
Ondragstart = "Return false" onbeforecopy = "Return false" oncopy =
First, make sure that the instance cannot access the attributes and methods in the prototype object, not only because the prototype object is rewritten to cut off the relationship between the constructor and the original prototype. In JavaScript
Regular expression syntaxA regular expression is a text mode consisting of common characters (such as characters A to Z) and special characters (such as metacharacters. This mode describes one or more strings to be matched when searching the text
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