HTML DOM Document strictErrorChecking 属性

  • পূর্ববর্তী পৃষ্ঠা scripts
  • পরবর্তী পৃষ্ঠা title
  • একটি স্তর উপরে HTML DOM Documents

定义和用法

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

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

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

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

替代方案:

JavaScript "use strict"

实例

return the document's DOM error settings:

document.strictErrorChecking;

亲自试一试

语法

return strictErrorChecking:

document.strictErrorChecking

set strictErrorChecking:

document.strictErrorChecking = true|false

ফলাফল

ধরন বর্ণনা
বুল মান

strictErrorChecking চালু থাকলে true হয়。

সমস্ত নতুন ব্রাউজারে undefined ফিরে আসে。

  • পূর্ববর্তী পৃষ্ঠা scripts
  • পরবর্তী পৃষ্ঠা title
  • একটি স্তর উপরে HTML DOM Documents