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

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM