如下所示:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>文件数据</title> <link href="~/Content/Base/layui/css/layui.css" rel="external nofollow" rel="stylesheet" type="text/css" /> <script src="/UploadFiles/2021-04-02/layui.js">此页面为弹出框页面,选择某一列后,点击确定返回数据
layui.use('layer', function () { var layer = layui.layer; layer.open({ cache: false, type: 2, title: '对比', skin: 'layui-layer-tb_125', area: ['600px', '250px'], content: '../ModelList/ModelMapNodeAttributeContrastForm', moveOut: true, zIndex: layer.zIndex, btn: ['确定', '关闭'], yes: function (index) { //当点击‘确定'按钮的时候,获取弹出层返回的值 var resdata = window["layui-layer-iframe" + index].callbackdata(); //最后关闭弹出层 layer.close(index); layui.use('layer', function () { var layer = layui.layer; layer.open({ type: 2, title: '查看', skin: 'layui-layer-tb_125', area: ['600px', '250px'], content: '../ModelList/ModelMapNodeAttributeDataForm"0"].modelid + '&ContrastModelName=' + resdata["0"].modelname + '&ContrastProductId=' + resdata["0"].productconfigid + '&aaaaaa=1', moveOut: true, zIndex: layer.zIndex, cancel: function (index, layero) { layer.close(index); return true; }, end: function () { } }); }); }, cancel: function (index) { //右上角关闭回调 layer.close(index); } }); });以上这篇layui 选择列表,打勾,点击确定返回数据的例子就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持。
最新资源
- 【中国民乐】张维良《秋江夜泊》2004[FLAC+CUE]
- 明达年度发烧碟MasterSuperiorAudiophile2011[D
- 明达年度发烧碟MasterSuperiorAudiophile2017[D
- 翁立友.2008-恨孤单【大旗】【WAV+CUE】
- 群星.2009-Magic.Cover日粤精华3CD【环球】【WA
- 华少翌.2005-华少翌【中唱艺能】【WAV+CUE】
- 群星《十二女声Ⅱ》[WAV/CUE/分轨][527MB]
- 大自然音乐系列《漫步在山裡》[WAV/CUE/分轨][5
- 大自然音乐系列《星光夜语》[WAV/CUE/分轨][453
- 史依弘《史依弘交响乐京剧演唱专辑HQ》头版限量