回答

0

你可以嘗試這樣的事情..

WinJS.Application.onerror = function (e) { 
     // The first argument give us details of the exception: 
     var message = e.detail.message; 
     var description = e.detail.description; 
     var code = e.detail.number; 
     var stackTrace = e.detail.stack; 
     // ...use console.log() to log your error details 
     return true; 
    }; 
+0

當你有一個嚴重的錯誤,但我並不重要時,這很好。他們只是一種「紅色警告」 –

+0

您發佈的圖像顯示錯誤..不是嗎? –

+0

是的,他們紅色像錯誤,但我的應用程序不會崩潰。所以我想這是一個重要的通知,但不重要。 –

相關問題