【问题标题】:i would like to reload the index.html page after clicking "ok" with alertify我想用 alertify 点击“ok”后重新加载 index.html 页面
【发布时间】:2015-11-14 01:22:12
【问题描述】:

我的代码中有这行 javascript

alertify.alert("<div class='alert'>Some speech</div>");

点击“确定”后我想重新加载 index.html 页面

是否可以不继续 alertify.confirm ?

【问题讨论】:

标签: javascript html alert reload alertify


【解决方案1】:

嗯,你可以使用这段代码来实现你想要的:

alertify.alert("This is an alert dialog.", function(){
    location.reload();
});

以下是演示链接:http://jsfiddle.net/5HygY/67/

我希望这会有所帮助。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-01-25
    • 2013-06-02
    • 1970-01-01
    • 2015-02-26
    • 2017-08-11
    • 2011-06-26
    • 2012-05-24
    • 1970-01-01
    相关资源
    最近更新 更多