摘要: //根据id获取控件的值,如果没有数据默认赋值为0 function getDataById(id) { var data = $("#"+id).val(); if(data==""){ data=0; } return data; } 阅读全文
posted @ 2018-09-12 16:51 爱跳舞的程序员 阅读(86) 评论(0) 推荐(0) 编辑
摘要: $("#div1", "#divN").click(function() { }); //或者 $("#div1, #divN").click(function() { }); 阅读全文
posted @ 2018-09-12 16:49 爱跳舞的程序员 阅读(402) 评论(0) 推荐(0) 编辑