我的代码中有这行 JavaScript
alertify.alert("<div class='alert'>Some speech</div>");
我想在单击“确定”后重新加载index.html页面
不进行alertify.confirm是否可以?
最佳答案
好吧,你可以使用这段代码来实现你想要的:
alertify.alert("This is an alert dialog.", function(){
location.reload();
});
以下是演示链接:http://jsfiddle.net/5HygY/67/
我希望这会有所帮助。
关于javascript - 我想在使用alertify单击 "ok"后重新加载index.html页面,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32117593/