在 jquery 警报中单击确定按钮后重新加载页面



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

杰斯菲德尔

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

最新更新