
ES6
前方太黑暗
这个作者很懒,什么都没留下…
展开
-
ES6 使用面向对象实现选项卡
选项卡样子<html><head><title>ES6面向对象</title><style>input.active{ background:red;}#first > div { width:200px; height:200px; background:#ccc; display:none;}...原创 2018-06-27 17:27:54 · 1818 阅读 · 0 评论 -
ES6 使用字符串模板生成HTML、及扩展运算符[...]的使用
<html><head><title>ES6</title><style>input.active{ background:red;}#first > div { width:200px; height:200px; background:#ccc; display:none;}#fi...原创 2018-06-28 14:17:33 · 3973 阅读 · 0 评论 -
ES6 json转map map转json
1、json转map<script> let json = {"name":"ES6","day":"2014","feature":"新特性"}; //json 2 map let map = new Map(); for(let i in json){ map.set(i,json[i]); } console.log(map);</script...原创 2018-06-28 14:29:27 · 2900 阅读 · 1 评论