首页
注册
登录
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请
登录
V2EX 提问指南
广告
V2EX
›
问与答
sweetalert 这个插件, 成功之后按 esc 退出后怎么刷新当前页面?
bugsnail
·
2016-12-23 11:23:22 +08:00
· 816 次点击
这是一个创建于 2707 天前的主题,其中的信息可能已经有所发展或是发生改变。
esc
sweetalert
插件
页面
1 条回复
1
bugsnail
OP
2016-12-23 12:00:42 +08:00
仔细再刷了一遍官方文档, 找到答案了:
``` javascript
swal({
title: data.msg,
type: "success",
confirmButtonText: "确定",
closeOnConfirm: true
}, function (isConfirm) {
if(isConfirm){
location.reload(true);
}else{
location.reload(true);
}
});
```
关于
·
帮助文档
·
博客
·
API
·
FAQ
·
实用小工具
·
4676 人在线
最高记录 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 31ms ·
UTC 09:34
·
PVG 17:34
·
LAX 02:34
·
JFK 05:34
Developed with
CodeLauncher
♥ Do have faith in what you're doing.