//list页面配置 // 行事件绑定 table.on('tool(test)', function (obj) { var data = obj.data; if (obj.event === "edit") { //eg2 layer.open({ title: '修改分类' , type: 2 , btn: ['提交'] , content: 'edit.html' , area: ['720px', '680px'] , shadeClose: false , move: false , scr
划红框的部分是主要部分,进行参数的传递。 父页面: !DOCTYPE htmlhtml lang="en" xmlns:th="http://www.thymeleaf.org"head/headbodyinput type="text" name="projectno" autocomplete="off"id="projectno" placeholder="项目编号" class="layui-input"input type="text" name="requestid" autocomplete
父页面: function edit(data) { layer.open({ type: 2,//0:信息框,默认1:页面层2:iframe层3:加载层4:tips层 area: ['650px', '620px'], fixed: false, //不固定 shade: 'background-color: rgba(0,0,0,.5)', shadeClose: true, //maxmin: true, content: 'edit?d_id=' + data.d_id + '' + 'a_nam