摘要: if else JavaScript把null、undefined、0、NaN和空字符串''视为false,其他值一概视为true,因此上述代码条件判断的结果是true。 iterable 遍历Array可以采用下标循环,遍历Map和Set就无法使用下标。为了统一集合类型,ES6标准引入了新的ite 阅读全文
posted @ 2017-12-14 17:33 看起来没睡醒 阅读(286) 评论(0) 推荐(0) 编辑