jQuery中$this和$(this)的区别介绍(一看就懂)_jquery
来源:懂视网
责编:小采
时间:2020-11-27 21:40:19
jQuery中$this和$(this)的区别介绍(一看就懂)_jquery
jQuery中$this和$(this)的区别介绍(一看就懂)_jquery: // this其实是一个Html 元素。 // $this 只是个变量名,加$是为说明其是个jquery对象。 // 而$(this)是个转换,将this表示的dom对象转为jquery对象,这样就可以使用jquery提供的方法操作。 (function($){ $.fn.hilight = fu
导读jQuery中$this和$(this)的区别介绍(一看就懂)_jquery: // this其实是一个Html 元素。 // $this 只是个变量名,加$是为说明其是个jquery对象。 // 而$(this)是个转换,将this表示的dom对象转为jquery对象,这样就可以使用jquery提供的方法操作。 (function($){ $.fn.hilight = fu
jQuery中$this和$(this)的区别介绍(一看就懂)_jquery
jQuery中$this和$(this)的区别介绍(一看就懂)_jquery: // this其实是一个Html 元素。 // $this 只是个变量名,加$是为说明其是个jquery对象。 // 而$(this)是个转换,将this表示的dom对象转为jquery对象,这样就可以使用jquery提供的方法操作。 (function($){ $.fn.hilight = fu