js三種綁定單擊事件

$("#text").bind("click",function(){ alert("個人id爲text,你點擊時觸發"); }); $("#text1").on("click",function(){ alert("hellworl"); }); $("#text2").click(function(){ alert($("#text2").val()); });
相關文章
相關標籤/搜索