<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>VConsole</title>
</head>
<body>
<script src='https://wechatfe.github.io/vconsole/lib/vconsole.min.js?v=3.0.0.0'></script>
<script type="text/javascript">
	window.vConsole = new window.VConsole();
	window.onerror = function(errorMessage, scriptURI, lineNumber,columnNumber,errorObj) {
	   console.log("错误信息:" , errorMessage);
	   console.log("出错文件:" , scriptURI);
	   console.log("出错行号:" , lineNumber);
	   console.log("出错列号:" , columnNumber);
	   console.log("错误详情:" , errorObj);
	}
	throw new Error("出错了!");
</script>
</body>
</html>

相关文章:

  • 2021-04-17
  • 2022-01-01
  • 2021-09-03
  • 2022-12-23
  • 2021-07-17
  • 2021-06-18
  • 2022-01-12
  • 2021-06-29
猜你喜欢
  • 2021-07-25
  • 2022-12-23
  • 2021-11-30
  • 2022-12-23
  • 2022-02-01
  • 2021-05-23
  • 2021-12-24
相关资源
相似解决方案