经典的页面调试信息输出方法

<script language="javascript">
function reportError(msg,url,line) {
 var str = "You have found an error as below: \n\n";
 str += "Err: " + msg + " on line: " + line;
 alert(str);
 return true;
}
window.onerror = reportError;
</script>
<script>
 alert(‘)
</script>
分享文章
X
更多

Neo的胡言乱语

独立记录 保持好奇

在这里记录投资、AI、技术与生活的思考

Neo新生活微信公众号二维码

微信 · Neo新生活

写下你的想法