我想在使用 alertify 单击 "ok" 后重新加载 index.html 页面

i would like to reload the index.html page after clicking "ok" with alertify

我的代码中有这一行javascript

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

我想在点击 "ok"

后重新加载 index.html 页面

不继续可以吗alertify.confirm?

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

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

下面是 link 的演示:http://jsfiddle.net/5HygY/67/

希望对您有所帮助。