随笔分类 -  前端

html+ js
摘要:1.定义一个键值对对象function ObjData(key,value){this.Key=key;this.Value=value;} 2.在点击表单的提交buttom的方法中:var list=document.getElementById("myForm").getElementsByTa 阅读全文
posted @ 2018-07-02 23:31 higsan 阅读(4592) 评论(0) 推荐(0) 编辑
摘要:1. <% request.getSession().putValue("time","0"); %> var a = <%=request.getSession().getValue("time")%>; alert(a ); 2. $(document).click(function (e) { 阅读全文
posted @ 2017-05-08 22:15 higsan 阅读(175) 评论(0) 推荐(0) 编辑
摘要:1. <html> <body onload="func()"> </body> </html> 2. <script type="text/javascript"> function func(){……} window.onload=func; </script> 3. <html> <body 阅读全文
posted @ 2017-05-08 22:14 higsan 阅读(856) 评论(0) 推荐(0) 编辑
摘要:1.js 获取table下列表数据 var table =document.getElementById ('yhwclwhjlList'); //获取id为'yhwclwhjlList' 的table var rows = table.rows.length; //获取行数 var colums= 阅读全文
posted @ 2017-04-11 17:31 higsan 阅读(1569) 评论(0) 推荐(1) 编辑

点击右上角即可分享
微信分享提示