会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
太轻描淡写了
开发中和学习过程中的一些笔记,仅用于日后开发加深印象
博客园
首页
新随笔
订阅
管理
2022年3月2日
JavaScript 中 this 指向问题 (普通函数, 箭头函数)
摘要: 普通函数 谁调用了函数,那么这个函数中的 this 就指向谁. let myFun = function() { console.log(this); } let obj = { name: "赵云", myFun: function() { console.log(this); } } // 这里
阅读全文
posted @ 2022-03-02 17:19 太轻描淡写了
阅读(199)
评论(0)
推荐(0)
编辑
公告