本文共 1458 字,大约阅读时间需要 4 分钟。
?????JS????
1. ????
1.1 ???
??????
?????????????????????????????????????????
- ????????????????
- ?????????????????????????????????????
????????
??????????????
Object.assign()?????????????????? Array.prototype.concat()?????????? Array.prototype.slice()?????????? 1.2 ???
??????
??????????????????????????????????????????????????????
????????
??????????????
JSON???????????JSON?????????? ??????????????????????????? lodash?cloneDeep?????????????? 2. ????
2.1 ??
???????????????????????????????????????????
???????
??????????????????????????????????
2.2 ??
????????????????????????????????????
???????
????????????????????????????????????
3. ????
3.1 ????
- typeof???????????
- instanceof??????????????????
3.2 ????
????????????????????????????
3.3 undefined?null
- undefined??????
- null?????????
3.4 ????
????????????????
4. ????
4.1 ??????
- ????????prototype???
- ????????_proto_???
- ???????????????
4.2 ?????
- ????????window???
- ????????????????????????
- ???????????????????
4.3 ???
- ????????????
- ????????????????????
5. ??????
5.1 ??????
- Object??????????????
- ???????????????
- ????????????
- ????????????new?????
- ????+?????????????
5.2 ????
- ?????????????????????
- ?????????????????????
- ??????????????????
6. ???????
6.1 ?????
- ???????????????
- ????????????
6.2 ?????
- JS???????JS?
- DOM/CSS??????????
- ???????????
- ???????????????????
6.3 ???
- ?????????????????
- ??????????????
6.4 JS???
- JS????????????????????????
6.5 ???????
?????????????????????????JS??????????
转载地址:http://cfox.baihongyu.com/