![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
javascript
huhu0707
想研究下程序
展开
-
JS闭包
1. this arguments引用 (() => { function Promise(fn) { let state = "pending"; let value = null; const callbacks = []; this.then = function (on...原创 2019-11-09 10:21:54 · 109 阅读 · 0 评论 -
js 类型基础知识
1 js数据类型 字符串:string 数组: number 布尔: boolean 对象: object new Object(),{} 未定义: undefined undefined 原始类型:String、Number、Boolean、Null、Undefined 引用类型:Object、Function 2 typeof 返回值 typeof undefined ||...原创 2018-05-11 18:51:17 · 122 阅读 · 0 评论 -
js 数值类型
数值类型:var var1 = 345; //345 十进制var var2 = 0x23; //35 十六进制var var3 = 023; //19 八进制字符串类型:var str1 = 'fff'; //普通字符串var str2 = '\x00gg' //十六进制字符编码 \x00var str3 = '\u0000gg' //unicode字符编码\u0000...原创 2018-06-01 17:42:47 · 247 阅读 · 0 评论 -
js原型链的领悟
1 String Number Object Boolean Array Function的原型执行的对应于其构造器创建的对象 String.prototype 指向 new String() 但String.proptotype.__prototype__指向Object.prototype //Object.prototype.__prototype === null ; String....原创 2018-07-15 13:32:48 · 84 阅读 · 0 评论