【问题标题】:Reload page after click ok button in jquery alert在 jquery 警报中单击确定按钮后重新加载页面
【发布时间】:2017-03-30 10:52:29
【问题描述】:

以下链接是面临问题的示例。当我单击确定按钮时,我应该重新加载页面。除非页面不应该重新加载。我有谷歌这个。还是没有结果。如何做到这一点。

Jsfiddle

 $(function () {
bootbox.alert({
    message: "I'm the first!"
});
location.reload(true);
});

【问题讨论】:

标签: jquery alert pageload bootbox


【解决方案1】:
$(function () {
    bootbox.alert({
    message: "I'm the first!",
    callback: function () { location.reload(true); }
});

【讨论】:

    猜你喜欢
    • 2019-03-31
    • 2013-06-02
    • 2013-10-13
    • 1970-01-01
    • 1970-01-01
    • 2018-10-15
    • 1970-01-01
    • 2014-01-07
    • 1970-01-01
    相关资源
    最近更新 更多