摘要: slice(): stringObject.slice(start,end) start截取子字符串的开始 end截取子字符串的结束,不包括本身 功能:截取子字符串 例子: var str="hello world"; console.log(str.slice(7,10)) //输出orl 负数的 阅读全文
posted @ 2018-09-19 09:40 键1234 阅读(480) 评论(0) 推荐(0) 编辑