摘要: concat(array1, array2, ...) 作用:连接两个或多个数组,并返回新的数组。 var hege = ['Cecilie', 'Lone'] var stale = ['Emil', 'Tobias', 'Linus'] var kai = ['Robin'] var child 阅读全文
posted @ 2019-09-21 14:49 依旧那片天 阅读(179) 评论(0) 推荐(0) 编辑
摘要: charAt():返回字符串指定位置的字符。 const str = 'hello world'; console.log(str.charAt(1)); // e charCodeAt():返回字符串指定位置的字符的Unicode编码。 const str = 'hello world'; con 阅读全文
posted @ 2019-09-21 14:45 依旧那片天 阅读(227) 评论(0) 推荐(0) 编辑