TUTORIALFrontendFETCHED
HTML DOM strictErrorChecking 属性
HTML DOM strictErrorChecking 属性 Document 对象 定义和用法 strictErrorChecking 属性可设置或返回是否强制进行错误检查(error-checking)。 在设置为 false 后,实现不会对每个可能的错误情况进行测试。此属性被默认设置为 true。 默认值为 true. 浏览器支持 目前所有主流浏览器都不支持 strictErrorChecking 属性。 语法 设..
Updated 7/16/2026
Tutorial detail pages default to noindex.
HTML DOM strictErrorChecking 属性
定义和用法
strictErrorChecking 属性可设置或返回是否强制进行错误检查(error-checking)。
在设置为 false 后,实现不会对每个可能的错误情况进行测试。此属性被默认设置为 true。
默认值为 true.
浏览器支持
![]()
![]()
![]()
![]()
![]()
目前所有主流浏览器都不支持 strictErrorChecking 属性。
语法
设置 strictErrorChecking
document.strictErrorChecking=true|false
返回 strictErrorChecking
document.strictErrorChecking
技术细节
| 返回值: | Boolean, true|false |
|---|---|
| DOM 版本 | Core Level 3 Document Object |
Document 对象