number類型
.toFixed(num) ? 返回string棵癣,num指定小數(shù)點后位數(shù)
toExponential(num) ?返回string,指數(shù)表示法,num制定位數(shù)
toPrecision(num) 返回string,示情況調(diào)用toFixed和toExponential
boolean類型
String類型
charAt(index) ?返回字符
charCodeAt(index) ?返回字符編碼
concat(str) ?連接字符串
slice(begin, end) ?返回副本
substr(begin, len) ?返回副本
substring(begin, end) 返回副本
indexOf(str, index) ?返回位置
lastIndexOf(str,index) ?返回位置熔萧,從后往前
trim() ?去除前后的空格 ?es5
toLowerCase() ?返回全小寫
toUpperCase() ?返回全大寫
match(RegExp) ?返回匹配的副本
seach(RegExp) ?返回index
replace(RegExp, str) ?返回副本磷箕,不修改原字符串
split(str or RegExp, len) ?返回分割后的數(shù)組尝江,len為最大長度