jQuery API 返回首页目录 | jQuery API 中英文对照版
click
click()

触发每一个匹配元素的click事件。这个函数会调用执行绑定到click事件的所有函数。

返回值:jQuery

示例:

$("p").click();

HTML 代码:

<p onclick="alert('Hello');">Hello</p>

结果:

alert('Hello');

 
click()

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
Example:

 $("p").click();  
Before:
 <p onclick="alert('Hello');">Hello</p>  
Result:
 alert('Hello');  

 

相关链接
asp之家 | jQuery官方网站 | jQuery中文网 | 电子书作者网站 | 电子书作者blog