jQuery API | 返回首页目录 | jQuery API 中英文对照版 |
click |
click()
触发每一个匹配元素的click事件。这个函数会调用执行绑定到click事件的所有函数。 返回值:jQuery 示例: $("p").click(); HTML 代码: <p onclick="alert('Hello');">Hello</p> 结果: alert('Hello'); Trigger the click event of each matched element. This causes all of the functions that have been bound to that click event to be executed. Return value: jQuery $("p").click();Before: <p onclick="alert('Hello');">Hello</p>Result: alert('Hello'); |