摘要:
本文参考:https://aotu.io/notes/2016/04/14/js-reduce/index.html arr.reduce(callback[, initialValue]) 实例: 数组 arr = [1,2,3,4] 求数组的和 forEach 实现 123 var arr = 阅读全文
摘要:
字符串扩展 字符串接口遍历器 for (let codePoint of 'foo') { console.log(codePoint) } // "f" // "o" // "o" 2.模板字符串 穿插变量 //旧写法 $('#result').append( 'There are <b>' + 阅读全文