摘要: 数据类型 基本类型 String、Number、Boolean、Null、Undefined 引用类型 Object、Array、Function 判断数据类型的方式 1. 使用 typeof typeof 'test' // string typeof 1880 // number typeof 阅读全文
posted @ 2021-09-03 14:53 Noxus丶SJ 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 三者都是改变 this 指向的 api 用法 apply:xxx.apply(this, [arg1, arg2]) call:xxx.call(this, arg1, arg2) bind:xxx.bind(this, arg1, arg2) 区别 主要是传参方式和执行方式不同 apply、cal 阅读全文
posted @ 2021-09-03 08:40 Noxus丶SJ 阅读(182) 评论(0) 推荐(0) 编辑