layer的几种使用方法

layer.alert(‘只想简单的提示’);

在这里插入图片描述

layer.alert(‘加了个图标’, {icon: 1});

在这里插入图片描述

layer.alert(‘有了回调’, function(index) {
//do something

layer.close(index);
});

在这里插入图片描述

回调就是关闭

猜你喜欢

转载自blog.csdn.net/weixin_44540320/article/details/87116934