摘要: js中的this:指的是调用当前方法(函数)的那个对象 demo function fn1(){ alert(this); } fn1(); //this=>window oDiv.onclick=fn1; //this=>oDiv oDiv.onclick=function(){ fn1(); / 阅读全文
posted @ 2017-09-12 09:39 carol72 阅读(113) 评论(0) 推荐(0) 编辑