在绑定事件时,要注意$(this)的指向问题!通过onclick属性绑定事件时通常需要传入this对象,然后用$(this)转为JQuery对象即可,this 等价于 $(this)[0]!
通过$(selector).click();绑定的事件处理函数中的$(this)指向事件源
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!