js里面的this和$(this)的区别

this表示的是javascript提供的当前对象
$(this)表示的是用jquery封装候的当前对象
this对象能够直接用this.style修改样式
$(this)能够使用jquery提供的方法访问样式
好比this.style.display="none"在jquery中能够用$(this).css("display","none")实现
相关文章
相关标签/搜索