2010-12-02 169 views

回答

2

jQuery綁定將函數指針作爲第二個參數。因爲在你的榜樣,你調用函數checkParams和使用返回值 綁定到上單擊事件,您應該使用

$("#imgSaveComment").bind("click",checkParams);