日期:2014-05-16  浏览次数:20400 次

jquery中$this和$(this)的作用和区别
问题如题,求详细解答!!!
jQuery this 脚本 javascript

------解决方案--------------------
$this只是个自定义的变量
$(this)是将当前dom对象转换成jquery对象 


------解决方案--------------------
引用:
$this只是个自定义的变量
$(this)是将当前dom对象转换成jquery对象 

+1
------解决方案--------------------
一般定义jquery变量习惯$开头,提高可读性而已。$(this)是把DOM对象封装成jquery对象,其相当于一个集合。
------解决方案--------------------
$this只是个自定义的变量
$(this)是将当前don对象转换成jquery对象