jquery中$this和$(this)的作用和区别
问题如题,求详细解答!!! jQuery this 脚本 javascript
[解决办法]
$this只是个自定义的变量
$(this)是将当前dom对象转换成jquery对象
[解决办法]
+1
[解决办法]
一般定义jquery变量习惯$开头,提高可读性而已。$(this)是把DOM对象封装成jquery对象,其相当于一个集合。
[解决办法]
$this只是个自定义的变量
$(this)是将当前don对象转换成jquery对象