jquery的触发器
时间: 2023-11-17 10:04:18 浏览: 136
jQuery的触发器是一种方法,可以通过它来触发元素上绑定的事件或自定义事件。使用`trigger()`方法可以触发执行元素上绑定的方法,并且也会触发元素的默认行为,比如`submit`按钮的提交表单行为。但需要注意的是,`<a>`超链接的`click`事件不会被触发。\[1\]\[2\]
#### 引用[.reference_title]
- *1* [jQuery之事件触发器trigger()](https://blog.csdn.net/qq_52421092/article/details/131262629)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down28v1,239^v3^insert_chatgpt"}} ] [.reference_item]
- *2* [Jquery 触发器之treigger()方法简介](https://blog.csdn.net/weixin_33831673/article/details/93230059)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insert_down28v1,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文