一、用jquery动态绑定点击事件的写法
部分代码:
<script type="text/javascript"> $(document).ready(function(){ $("#text").bind("click",function(){ alert("我的id为text,你点击时触发"); }); $("#text1").on("click",function(){ alert("hellworl"); }); $("#text2").click(function(){ alert($("#text2").val()); }); }); </script> <body> <input id="text" type="button" value="点击"/> <input id="text1" type="button" value="点击"/> <input id="text2" type="text" value="love"/> </body>
如对本文有疑问, 点击进行留言回复!!
node网络组件axios使用填坑,服务端无法接收数据,post请求json对象被转为string
IOS基础入门OC语言Xcode Day12笔记:Json字符串和字典互转
POJ 1426 Find The Multiple 简单dfs构造
《Android移动应用基础教程》(Android Studio)(第二版)黑马教程 课后题答案 第11章
网友评论