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

 

 

如果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%"],
});

 

posted @ 2020-07-27 17:09  秋风过、枯叶落  阅读(10852)  评论(2编辑  收藏  举报