字符串String
<ol>
<li>str.toUpperCase():字符串的字母全部专为大写</li>
<li>str.toLowerCase():字符串的字母全部专为小写</li>
<li>str.indexOf(target[,startIndex]):搜索指定字符串出现的位置,有返回索引,没有返回-1,默认从0开始</li>
<li>str.substring([start,end)):返回指定区间的字符串,默认从头到尾,end为负数时取补集</li>
<li>str.substr([start,len)):返回指定长度的字符串,默认从头到尾</li>
<li>str.slice([start,end)):与substring()基本相同,end为负数时则为倒数</li>
<li>str.split([para,len]):以指定字符为分割符将字符串分割为数组,返回数组的最大长度为len,默认所有</li>
<li>str.replace(str|reg,str2):将指定字符替换,第二参数不传时替换为undefined</li>
<li>str.lastIndexOf(target):从末尾开始搜索指定字符串出现的位置,有返回索引,没有返回-1</li>
<li>str.charAt(index):返回指定位置的字符</li>
<li>str.match(str|reg):字符串匹配,有则返回匹配结果,无则返回null</li>
<li>regObj.exec(str):正则匹配,与match()相似</li>
<li>str.search(target|reg):查找字符串中是否存在目标值,有则返回index,无则返回-1</li>
<li>str.trim():清楚字符串前后空格</li>
</ol>