JavaScript中this关键字用法实例分析【点击查看详情】
JavaScript中this关键字用法实例分析:本文实例总结了JavaScript中this关键字用法。分享给大家供大家参考,具体如下: 例1: function a(){ var user = yao; console.log(this.user);//undefined console.log(this);//window } a(); 等价于: functi
相关视频/文章