Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
</head>
<body>
  <script>
    var consoleError = window.console.error;
    window.console.error = function () {
        alert(JSON.stringify(arguments)); // 自定义处理
        consoleError && consoleError.apply(window, arguments);
    };
    function btnClick () {
      console.error('22334');
    }
  </script>
  <input type="button" value="点击console错误" onclick="btnClick()"/>
</body>
</html>
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
Lie8466pro
0viewers