2016年12月25日

ES6 之 Set数据结构和Map数据结构 Iterator和for...of循环

摘要: ECMAScript 6 入门 Set数据结构 基本用法 ES6提供了新的数据结构Set。它类似于数组,但是成员的值都是唯一的,没有重复的值。 Set本身是一个构造函数,用来生成Set数据结构。 上面代码通过add方法向Set结构加入成员,结果表明Set结构不会添加重复的值。 向Set加入值的时候, 阅读全文

posted @ 2016-12-25 20:56 oneplace 阅读(1985) 评论(0) 推荐(0) 编辑

boolean attribute(布尔值属性) attribute vs property

摘要: boolean attribute(布尔值属性) boolean attribute HTML - Why boolean attributes do not have boolean value? Boolean HTML Attributes HTML Boolean Attributes A 阅读全文

posted @ 2016-12-25 12:59 oneplace 阅读(1836) 评论(0) 推荐(0) 编辑

导航