layui弹出层layer.open 中的content问题

时间:2020-07-27 17:55:31   收藏:0   阅读:952

 

 

如果content取的的事当前页面元素内容时,type类型应该为1
layer.open({
type: 1,
title: ‘内容区域‘,
 content: $(‘#DIV_EditUserInfo‘),    // 设置跳转的div,跳转到对应的页面
area: ["920px", "250px"],
});

如果content取的的路径,或者某个页面,type类型应该为2
layer.open({
type: 2,
title: "内容区域",
content: ‘UserInfoEdit.html?actionType=new‘,    // 设置跳转的url,跳转到对应的页面
area: ["1500px", "100%"],
});

 

原文:https://www.cnblogs.com/foreverfendou/p/13386406.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!