I. Basic Library of functionsSplit (): Used to split a string into a string arraytoUpperCase ():SUBSTR (): LengthLength () splicing (two kinds)+Concat (): Merges multiple strings and returns the results of the merge FindThe IndexOf () method returns
Record only new knowledge and examples of learning, stemless goods.1.setAttribute and GetAttribute (Attribute: Properties)SetAttribute: Adds the specified property to the element and assigns it a value, or only sets or alters its value if the
Js-can only be entered in Chinese and English2008-11-08 10:17Using the regular Expression object (REGEXP) in JS to judgeChinese^[\u0391-\uffe5]+$English^[a-za-z]+$Chinese and English/^[\u0391-\uffe5a-za-z]+$/JS Regular expression limit text box can
differentiate between Underfined,null and Nan Let's look at the result of the following statement: 1: var A; 2: //Show "undefined" 3: alert (typeof//Show "undefined" ) 4: alert (b); Show "Undefined" The values and types of a above are ' underfined '
form object form validation 1. Registry name: Password: Sex: male Women Date of birth: Hobby: <Input type= "checkbox" Name= "loves" value= ' soccer ' checked= "checked"/> Soccer reading Travel Games
StringUtils provides a number of common string handling methods, including removing whitespace at both ends of a string, padding characters around a string, string formatting, string HTML encoding, and string HTML decoding. Method
Problem:The code works fine under Forefox and IE8, but the error is under IE6: Expected identifier, string or number If there are multiple options for a variable option, then we can separate it with commas, but the last option cannot have a
Inheritance is a relatively central concept in object-oriented. Other Orthodox object-oriented languages implement inheritance in two ways: one is an interface implementation and one is inheritance. ECMAScript only supports inheritance, does not