2022年3月21日
摘要: 输入整数且保留两位小数<input type="text" id="costs1" class="layui-input" value="" onkeyup="this.value= this.value.match(/\d+(\.\d{0,2})?/) ? this.value.match(/\d 阅读全文
posted @ 2022-03-21 10:52 IT-QI 阅读(103) 评论(0) 推荐(0) 编辑
摘要: var tableObj = document.getElementById("baoxiao");//-3是因为后边三行不计算for (var i = 1; i < tableObj.rows.length-3; i++) { //遍历Table的所有Row if(tableObj.rows[i] 阅读全文
posted @ 2022-03-21 09:54 IT-QI 阅读(23) 评论(0) 推荐(0) 编辑