toUpperCase()把字符串转换为大写
var s = 'abcd';
console.log(s); // 'ABCD'
toLowerCase()把字符串转换为小写
var s = 'ABCD';
console.log(s); // 'abcd'
indexOf()找出指定字符串出现的位置
var s = 'abcdef1234abcdef';
console.log(s.indexOf('1234'));
substring(idxStart, [idxEnd])返回指定索引区中的子串
var s = 'abcdefg';
console.log(s.substring(1,5));
substr(start, [length])返回指定索引位置后指定长度的字串
var s = 'abcdefg';
console.log(s.substr(1,5));