会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
ls-lansy
博客园
首页
新随笔
联系
订阅
管理
2020年2月13日
js -this,new、call、apply、bind 相关面试题
摘要: this问题 在es5中,在函数定义时是无法确定this的指向的,只有在运行的时候才知道它的指向,实际上this的指向是指向调用它的那个对象 例子1 function a() { var user = '1' console.log(this.user) // undefined console.l
阅读全文
posted @ 2020-02-13 12:05 ls-lansy
阅读(367)
评论(0)
推荐(0)
编辑
公告