摘要:
<label>用户名</label> <input type="text" id="userName"><br> <label>密 码</label> <input type="password" id="password"><br> <input type="submit" class="sub 阅读全文
摘要:
1. new Set()可能有人知道ES6中提供了新的数据结构 Set,但是能够灵活运用的人或许不多。利用Set数据结构我们能够轻松的去重一个数组,比如:let arr = [1, 2, 2, 3];let set = new Set(arr);let newArr = Array.from(set 阅读全文