11 2020 档案
摘要:<table class="layui-table" lay-filter="demo"> <colgroup> <%--设置每列的宽度--%> <col width="108px"> <col width="10%"> <col width="22%"> <col width="100px"> <
阅读全文
摘要:layer.confirm('数据已存在,是否继续', { offset: '200px' , cancel: function (index, layero) { console.log('点击X按钮'); layer.close(index); } }, function (index) { c
阅读全文
摘要:(1)使用具有全局标志g的正则表达式 var str = "dogdogdog"; var str2 = str.replace(/dog/g,"cat");// console.log(str2); (2) 使用另一种具有全局标志g的正则表达式的定义方法 var str='dogdogdog';
阅读全文
摘要:form.on('checkbox(filter)', function(data){ console.log(data.elem); //得到checkbox原始DOM对象 console.log(data.elem.checked); //是否被选中,true或者false console.lo
阅读全文
摘要://添加验证项 function addField(field, notEmptyMsg, othercon) { if (!othercon) { $("#gyssave").bootstrapValidator("addField", field, { validators: { notEmpt
阅读全文
摘要:/*设置不可编辑时字体颜色*/ .layui-disabled, .layui-disabled:hover { color: #101010 !important; background-color: #eee; } /*设置表格单元格线样式*/ .layui-table td, .layui-t
阅读全文