$("#text").bind("click",function(){
alert("我的id为text,你点击时触发");
});
$("#text1").on("click",function(){
alert("hellworl");
});
$("#text2").click(function(){
alert($("#text2").val());
});
JQuery绑定click事件的3种写法
猜你喜欢
转载自blog.csdn.net/ozhy111/article/details/85098836
今日推荐
周排行