摘要: 字符串的扩展 1、字符串遍历 for(let i of 'foo'){ console.log(i); } // 'f' 'o' 'o' 2、扩展方法 at() 'at'.at(0) // 'a' includes(),startsWith(),endsWith() var s = 'HelloWo 阅读全文
posted @ 2016-07-05 16:30 FEHammer 阅读(89) 评论(0) 推荐(0)