摘要: JS中,this到底指向谁,一直是比较困惑的问题,由于this的指向问题造成bug,在程序中经常出现,如何正确理解this的应用,是写好js代码的关键。 案例1: function thiswindow() { console.log(this window); //输出为true } thiswi 阅读全文
posted @ 2022-10-12 11:28 Min.Xiaoshuang 阅读(22) 评论(0) 推荐(0) 编辑