js三种绑定单击事件

$("#text").bind("click",function(){ alert("个人id为text,你点击时触发"); }); $("#text1").on("click",function(){ alert("hellworl"); }); $("#text2").click(function(){ alert($("#text2").val()); });
相关文章
相关标签/搜索