javascript中this指向问题(面试必考)
javascript中this指向问题1.问什么会有this1.看下面一段代码//不使用thisfunction myName(context){ return context.name.toLocaleUpperCase();}function introduction(context){ console.log(`My name is ${myName(context)}`)}let ming = { name: "ming",}let yong = {
原创
2020-12-15 17:50:03 ·
305 阅读 ·
0 评论