摘要: 在模态框外: let vm=this ..... 模态框内: vm.属性(或方法)代替this.属性(或方法) 阅读全文
posted @ 2023-06-14 16:12 niushuangmeng 阅读(11) 评论(0) 推荐(0) 编辑
摘要: 1.命令行输入:which redis-server 2.命令行输入步骤一返回的结果 阅读全文
posted @ 2022-05-20 18:10 niushuangmeng 阅读(501) 评论(0) 推荐(0) 编辑
摘要: 在例子插件中的install.sql中,里面有地区表数据 阅读全文
posted @ 2020-12-16 10:49 niushuangmeng 阅读(925) 评论(0) 推荐(0) 编辑
摘要: js页面 { field: 'area', title: '地址', operate: 'LIKE', formatter: function (value, row, index) { if (row.province && row.city && row.area){ return row.pr 阅读全文
posted @ 2020-12-16 10:37 niushuangmeng 阅读(1371) 评论(0) 推荐(0) 编辑
摘要: 新增页面:add.html <div data-toggle="cxselect" data-selects="province,city,area,engineer"> <div class="form-group"> <label class="control-label col-xs-12 c 阅读全文
posted @ 2020-12-16 10:26 niushuangmeng 阅读(1073) 评论(0) 推荐(0) 编辑
摘要: js文件 var table = $("#table"); table.on('post-common-search.bs.table', function (event, table) { var form = $("form", table.$commonsearch); $("input[na 阅读全文
posted @ 2020-12-16 10:17 niushuangmeng 阅读(3887) 评论(0) 推荐(0) 编辑
摘要: var box = document.getElementById("boxid"); var loves = document.getElementsByClassName("sel"); if(box.checked == false){//如果全选按钮不为选中 for (var i = 0; 阅读全文
posted @ 2020-04-12 11:47 niushuangmeng 阅读(2092) 评论(0) 推荐(0) 编辑
摘要: 依赖触发事件来执行JavaScript代码。 on方法来绑定一个事件: /* HTML: * * <a id="test-link" href="#0">点我试试</a> * */ // 获取超链接的jQuery对象: var a = $('#test-link'); a.on('click', f 阅读全文
posted @ 2020-04-12 11:41 niushuangmeng 阅读(248) 评论(0) 推荐(0) 编辑
摘要: var check_value = []; $('input[class="sel"]:checked').each(function (){ check_value.push($(this).val()); }); if(check_value.length==0){ alert('请先勾选您要设 阅读全文
posted @ 2020-04-12 11:38 niushuangmeng 阅读(1157) 评论(0) 推荐(0) 编辑
摘要: foreach($arr as $index => $value){ $arr[$index] = (int)$value; } 采用循环遍历的方式,将数组中的每一个数字字符串元素设置为整数数字。 阅读全文
posted @ 2020-04-12 11:16 niushuangmeng 阅读(2151) 评论(0) 推荐(0) 编辑