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

如果content取的的事当前页面元素内容时,type类型应该为1
layer.open({
type: 1,
title: '数据选择器',
content: $('#select_pe_content').html(),
area: ["920px", "250px"],
});

 

 

如果content取的的路径,或者某个页面,type类型应该为2
layer.open({
type: 2,
title: "添加商品信息",
content: "{:url('goods/addgoods')}",
area: ["1500px", "100%"],
});
————————————————
版权声明:本文为CSDN博主「我是真的cai」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/weixin_42164539/java/article/details/90728794

posted @ 2020-07-17 14:57  Ao_min  阅读(8132)  评论(0编辑  收藏  举报