通过layer.style动态来设置
//你每执行一个弹层,都会返回一个索引
//重新给指定层设定width、top等
var index = layer.open();
layer.style(index, {
width: '1000px',
top: '10px'
});
通过layer.style动态来设置
//你每执行一个弹层,都会返回一个索引
//重新给指定层设定width、top等
var index = layer.open();
layer.style(index, {
width: '1000px',
top: '10px'
});