XML DOM strictErrorChecking 屬性
Document 對象
定義和用法
strictErrorChecking 屬性設置或返回是否強制進行錯誤檢查。
當設置為 false 時,實現不會對每個可能的錯誤情況進行測試。該屬性默認設置為 true。
語法
documentObject.strictErrorChecking
實例
下面的代碼片段使用 loadXMLDoc() 把 "books.xml" 載入 xmlDoc 中,并返回是否強制進行錯誤檢查:
實例
xmlDoc=loadXMLDoc("books.xml");
errCheck=xmlDoc.strictErrorChecking;
document.write(errCheck);
輸出:
true
嘗試一下 ?
Document 對象