//index是索引值,用于关闭弹框
var index = layer.open({
type: 2,
content: $("#id"),
area: ['300px', '200px'],
success:function(index,layero){
//执行的函数
}
});
layer.close(index);//关闭弹框层
关闭弹框层
最新推荐文章于 2020-10-25 16:18:45 发布