jQuery.isXMLDoc () method
Examples
Determine whether an object in an XML document
$ (Function () {
function fun ( html ) {
.. document body innerHTML + = " <br>" + html;}
fun ($ isXMLDoc (document). ); // false
fun ($ isXMLDoc (document body) ..); // false
})
try it"
Definition and Usage
$ .isXMLDoc () Function is used to determine whether a DOM node located in the XML document, or is itself an XML document.
grammar
$.isXMLDoc( node )
参数 | 描述 |
---|---|
node | Element类型 需要进行判断的DOM节点。 |