823   jQuery JS

以click事件为例,手动触发click有两种方法
第一种

$("#button").click();

第二种

$('#button').trigger('click');



Leave a Reply

Your email address will not be published. Required fields are marked *