摘要: 1。。 在函数参数中的,回调函数的this ,指向window 如: promise中的回调函数, 可以在方法外,转存this 2。。构造函数中,this指向,实例对象 , 在全局中this是windows。 3。。普通 var obj = { a(){ this } , b: { c() {thi 阅读全文
posted @ 2019-03-06 14:48 唐安 阅读(232) 评论(0) 推荐(0)