如果content取的的事当前页面元素内容时,type类型应该为1
如果content取的的路径,或者某个页面,type类型应该为2
layer.open({
type: 1,
title: '数据选择器',
content: $('#select_pe_content').html(),
弹出框占父框区域的整体比例
area: ["100%", "100%"],
});
layer.open({
type: 2,
title: "添加商品信息",
content: "{:url('goods/addgoods')}",
area: ["100%", "100%"],
});
https://blog.csdn/weixin_42164539/article/details/90728794
更多推荐
弹出层layer.open 中的content记录
发布评论