Proprietà strictErrorChecking del Documento HTML DOM

Definizione e uso

Non raccomandato strictErrorChecking Attributo。Non utilizzarlo.

strictErrorChecking L'attributo viene restituito in tutti i nuovi browser undefined

Commento:strictErrorChecking L'attributo è una caratteristica del livello 3 del Core DOM (2004).

Dovrebbe controllare se il browser deve lanciare eccezioni di errore per le operazioni DOM.

Soluzione alternativa:

JavaScript "use strict"

Esempio

Restituire le impostazioni di errore DOM del documento:

document.strictErrorChecking;

Prova personalmente

Sintassi

Restituire strictErrorChecking:

document.strictErrorChecking

Impostare strictErrorChecking:

document.strictErrorChecking = true|false

Valore di ritorno

Tipo Descrizione
Valore booleano

Se strictErrorChecking è attivato, è true.

Ritorna undefined in tutti i nuovi browser.