-1
load_document(mobjson.ErrMsg, 1);
此功能打開創建新的窗口中的PDF和開放,並刪除它在服務器上,一切都很好,如果創建的PDF很小,但是當它需要多一點的時間只在Safari瀏覽器中的執行到error:function({alert('error')}),其餘瀏覽器完全打開pdf。 我試圖等到函數調用結束jQuery中
setTimeout(function() {
load_document(mobjson.ErrMsg, 1);
}, 15000);
,但不知道需要多久採取其他PDF可創造... 基本上我想是
load_document(mobjson.ErrMsg, 1);
wait till its complete then execute next line ..