How to get the document object under different circumstances

1. In a typical Web page document, by: Document or window.document acquired;

2. iframe frame, by property node iframe: contentDocument acquisition;

3, through the XMLHttpRequest object returned by ajax document responseXML get property;

4. The internal nodes by document node ownerDocument get property;

Guess you like

Origin www.cnblogs.com/aisowe/p/11531050.html