var shortNameList = "<select><option value=‘1‘>1</option><option value=‘2‘>2</option></select>"; top.dialog({ title: "修改账单的客户简称", width: 400, content: ‘<div class="layui-form-item" style="margin-top:15px;"><label class= "layui-form-label" style="width:15% !important;" > 客户简称:</label>‘ + shortNameList+‘</div>‘, ok: function () { var newShortName = this._$("content").find("select").val(); //获取content中的select的选中值 return false; //返回false时,点击按钮不会关闭模态对话窗 } }).showModal();
原文地址:https://www.cnblogs.com/yxcn/p/10280553.html
时间: 2024-09-30 22:04:33