layui怎么对弹出层显示数据?下面给大家举个例子:
<a id="func11" onclick="func11();">点击查看</a> function func11() { console.log($.cookie("id")); //iframe窗 layer.open({ type: 2, title: false, shade: [0.5], title: '商品简介', shadeClose: true, shade: 0.5, skin:'demo-class', maxmin: true, //开启最大化最小化按钮 area: ['1000px', '660px'], shift: 2, content: 'product.jsp?id=<%=rs.getInt(“id”)%>', //iframe的url, }); }
错误:id号传不过去,页面跳转之后接收的id不正确,所以显示的页面不正确。