如果警报 window 重新加载完成后,bootbox 警报会消失

bootbox alert gets faded if after alert window reload is done

如果 window 重新加载按照下面提到的代码完成,bootstrap bootbox 警报就会消失。如果有人知道解决方案,请帮助。

bootbox.alert("Successfully created shipment. \n Transaction Hash is:" + 数据) 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();
    }
});