Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在调试 asp .net 应用程序时,是否有一种简单的方法可以仅将调试器附加到服务器端代码?我现在想忽略所有 JS 错误和未处理的异常。IDE 是 Visual Studio 2010。
你可以在你的 javasript 上声明这个
function errorHandler(msg,url,lno){ return (true); } window.onerror = errorHandler;
这样一来,所有的 javascript 错误都不会显示出来。