HTML DOM Document strictErrorChecking 属性

定义和用法

不推荐使用 strictErrorChecking 属性。请勿使用它。

strictErrorChecking 属性在所有新浏览器中都返回 undefined

注释:strictErrorChecking 属性是 DOM Core Level 3 (2004) 特性。

它应该控制浏览器是否应该为 DOM 操作抛出错误异常。

替代方案:

JavaScript "use strict"

实例

返回文档的 DOM 错误设置:

document.strictErrorChecking;

亲自试一试

语法

返回 strictErrorChecking:

document.strictErrorChecking

设置 strictErrorChecking:

document.strictErrorChecking = true|false

返回值

类型 描述
布尔值

如果 strictErrorChecking 开启,则为 true。

在所有新浏览器中均返回 undefined。


http://www.vxiaotou.com