07 2021 档案
摘要:includes() // 该方法用于判断数组是否存在某个元素 const arr = [1, 2, 3, 4, 5] const includeNum4 = arr.includes(4) const includeNum7 = arr.includes(7) console.log(includ
阅读全文
摘要:"scripts": { "_____comment": "npm run git -- 'commit-msg' so you can push and update by a auto way", "git": "npm run build && git add . && git commit
阅读全文
摘要:解决办法: 首先执行下npm adduser,输入相应的Username、Password、Email: (this IS public) ·······Logged in as 您的Username on https://registry.npmjs.org/. 如果on后面不是https://r
阅读全文
摘要:Object.freeze() 这是一个函数 这个函数的作用就是将对象进行冻结 就好比咱们封装好一个对象 但是又不希望后续对这个对象进行修改 就可以使用这个函数进行冻结
阅读全文