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

Posted foreverfendou

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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%"],
});

 

以上是关于layui弹出层layer.open 中的content问题的主要内容,如果未能解决你的问题,请参考以下文章

在layui layer 弹出层中加载 layui table

layui的弹出层效果在导航中的使用

如何获取用layer弹出层表单的数据

如何获取用layer弹出层表单的数据

layui弹出层type=2无法正常验证问题

layer弹出层显示在top顶层