layer 弹出层弹出后自动最大化

转载https://blog.csdn.net/u013861849/article/details/86708325

 
var index = layer.open({
                type: 2,
                title: ‘标题’,
                id:'TWork',
                maxmin: true,
                area: ['800px', '600px'],//宽高不影响最大化
                content: url,//地址
                success: function (layero, index) {
 
                },
                end: function () {
 
                }
            });
//只需要加这一句就可以啦
layer.full(index);

猜你喜欢

转载自blog.csdn.net/lemonemmm/article/details/90105689
今日推荐