JS实现提示跳转功能

layer.confirm('提示内容!', {
btn: ['确定', '取消'] //按钮
}, function () {
跳转或者点击按钮后想要实现的功能
layer.close(index);
});

小白的日常
原文地址:https://www.cnblogs.com/Stranger-WY/p/13879854.html