JavaScript设置或获取强制错误检查|Document strictErrorChecking 属性

Document 对象参考手册


定义与用法

strictErrorChecking 属性可设置或返回是否强制进行错误检查(error-checking)。

在设置为 false 后,实现不会对每个可能的错误情况进行测试。此属性被默认设置为 true。

默认值为 true.


语法格式

设置 strictErrorChecking

document.strictErrorChecking=true|false

获取 strictErrorChecking

document.strictErrorChecking


浏览器支持

属性Google ChromeInternet ExplorerFirefoxSafariOpera
strictErrorCheckingNoNoNoNoNo

目前所有主流浏览器都不支持 strictErrorChecking 属性。


技术细节

返回值:Boolean, true|false
DOM 版本Core Level 3 Document Object

Document 对象参考手册


相关