0
如果窗口重新加载完成,那么bootstrap bootbox警报将会消失,如下面提到的代码所示。如果有人知道解决方案,请帮助。如果警报窗口重新加载完成后,bootbox警报将消失
bootbox.alert(“成功创建装运。\ n事务哈希值为:”+ data) window.location.reload();
如果窗口重新加载完成,那么bootstrap bootbox警报将会消失,如下面提到的代码所示。如果有人知道解决方案,请帮助。如果警报窗口重新加载完成后,bootbox警报将消失
bootbox.alert(“成功创建装运。\ n事务哈希值为:”+ data) window.location.reload();
这覆盖在多个地方in the documentation。重申一下:你location.reload
调用需要在回调:
bootbox.alert("Successfully created shipment. \n Transaction Hash is:" + data, function(){ window.location.reload(); });
或
bootbox.alert({
message: "Successfully created shipment. \n Transaction Hash is:" + data),
callback: function(){
window.location.reload();
}
});