31
// 严格模式
undefined
// 非严格模式
2
32
33
34
35
yupi Window对象
yupi Obj对象
Window对象
严格模式
yupi undefined
yupi Obj对象
undefined
36
37
Window 对象
Window 对象
{num: 4, test: ƒ} // obj 对象
32
96
38
39
40
41
42
43
44
1
1
2
注意:new操作符会覆盖bind的this绑定,new操作符会创建一个新的对象,函数内的this会指向这个新创建的对象,而不是bind时绑定的对象
45
1
undefined
ReferenceError: a is not defined
46
undefined
undefined
1
1
undefined
1
47
48
foo
TypeError: bar is not a function
49
1
ReferenceError: value is not defined
50
51
undefined
0
0
0
undefined
0
1
2
undefined
0
1
1
最后编辑于:2026-01-11 09:11:45
©著作权归作者所有,转载或内容合作请联系作者。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,little笔记系信息发布平台,仅提供信息存储服务。