ML 屏蔽 JS
-
html如何屏蔽js错误提示
JS错误提示的方法有:使用try…catch捕获异常;设置window.onerror = function() { return true; };或重写console.error和console.warn为空函数
JS错误提示的方法有:使用try…catch捕获异常;设置window.onerror = function() { return true; };或重写console.error和console.warn为空函数