会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
心中有一海
可以纳百川
博客园
首页
新随笔
联系
订阅
管理
2019年10月13日
this指向与绑定
摘要: function cat(age,color){ console.log(this) console.log(color) } const age1 = 1 const age2 =2 const color1 = 'white' const color2 = 'black' //1.函数直接调用: cat(age1,color1) /*node输出: this > 根据运行环境而定,指向当前运行
阅读全文
posted @ 2019-10-13 00:31 心中有一海
阅读(117)
评论(0)
推荐(0)
编辑
公告