Slide 19
Slide 19 text
Copyright © 2012 FITPI. All rights reserved.
window.onerror
19
window.onerror = function (message, url, line) {
alert([
"JavaScript error: " + message,
" on line " + line,
" for " + url
].join(""));
return false; // false ။᠃㗞ੜࡨޡɺtrue ଇ။ᆫࡨޡ
};
ấ↪ẕ֥ቋᗥ၂֡ٝ䍛
ჩߟࢿྉɿhttp://dev.opera.com/articles/view/better-error-handling-with-window-onerror/
࿅शɿhttp://f2eclass.com/lab/debug/window-onerror.html