摘要: 说到类型,JavaScript 定义了少量的数据类型: null undefined 布尔值 数字 字符串 函数 和 对象。 假如要区分值得类型,无疑 typeof 首选 。如下 1 typeof 1 2 typeof "string" 3 typeof true 4 typeof null 5 t 阅读全文
posted @ 2016-09-26 17:45 czhyuwj 阅读(322) 评论(0) 推荐(0) 编辑
摘要: 在stack overflow中看到一个人回答,如下 Yes, the first function has no relationship(有关) with an object instance of that constructor function, you can consider it l 阅读全文
posted @ 2016-09-26 13:21 czhyuwj 阅读(244) 评论(0) 推荐(0) 编辑
摘要: __proto__ is the actual object that is used in the lookup chain to resolve methods, etc. __proto__是解决对象原型链间的问题 prototype is the object that is used to 阅读全文
posted @ 2016-09-26 10:19 czhyuwj 阅读(221) 评论(0) 推荐(0) 编辑