1. The form item cannot be blank.
2. Compare whether the values of the two form items are the same
3. Form items can only be numbers and "_", used for phone/Bank Account Verification, and can be extended to domain name registration.
4. Input
Use JavaScript frameworksWhen talking about the window object, we mentioned that a webpage in the framework is also a window object, that is, the Frame object is also a window object. In the simplest case, each HTML file occupies a window object,
I am a half-way expert in j2ee, and I have never learned from the system. Many functions can be used, but I cannot tell the truth.
Jquery is often used in jsp files and is currently used for javascript.
If you have any comments or suggestions,
I. URL of JavaScript Static Page value transfer
Pass through the URL to pass the value. Connect the information to be passed to the URL.
Post.htm
String. prototype. getQuery = function (name)
{
Var reg = new RegExp ("(^ | &)" + name + "=
We often need to dynamically add various attributes to the Element in JavaScript, which can be achieved by using setAttribute (), which involves the compatibility of the browser.
SetAttribute (string name, string value): adds a new attribute with
Node replacement:1). replaceChild (): replace one subnode in a given parent element with another subnode.Var reference = element. replaceChild (newChild, oldChild );The returned value is a reference pointer pointing to the child node that has been
PandaJS instructions for use (1.7): Permission control and data verification
Using the proxy object mentioned in the previous article, we can also implement permission control and data verification.The idea of permission control is to intercept
Recently I used jquery and learned it by myself. Here are some notes I made when I got started (refer to 3 wschool ). Some simple exercise code written by myself
I. Three different methods for loading jquery files1. Local file (to download the js
In WEB applications, the monitoring SESSION is generally used to determine whether a user is logged on or has been in a daze for a long time. If the SESSION expires or the user has not logged on, when the user requests resources from the server
We will test the random sorting of 0-9, Mr into data
View sourceprint? 1 var arr = [,];
View sourceprint? 1 arr. sort ();
2 document. write ("array elements after normal sorting:" + arr. join (",") + " ");
Array elements after normal sorting:
1. Call the Flex method in JavaScriptIn Flex, you can use ExternalInterface to call the Flex method by adding the specified public method to the callable method list of the Flex application. In a Flex application, you can call addCallback () to add
1. Custom function $. fn. Function Name (parameter ){}2. Html specifies the html value of the div, text specifies the div as the string value3. $ ("# queren"). val specifies the value. Author's "Technical Study Notes"
The main function is to dynamically increase or decrease input boxes, and supports detection of each input box.
After entering the content in each input box, an error is prompted.
Finally, We splice all the content in the input box with the format
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