jQuery.isXMLDoc()方法

jQuery 教程 · 2019-03-28 22:59:17

实例

判断一个对象是否在一个 XML 文档中

$(function () { function fun( html ){ document.body.innerHTML += "<br>" + html; } fun($.isXMLDoc(document)); //false fun($.isXMLDoc(document.body)); //false })

定义和用法

$.isXMLDoc() 函数用于判断一个DOM节点是否位于XML文档中,或者其本身就是XML文档。

语法

$.isXMLDoc( node )

参数 描述
node Element类型 需要进行判断的DOM节点。

点击查看所有 jQuery 教程 文章: https://codercto.com/courses/l/35.html

查看所有标签

Compilers

Compilers

Alfred V. Aho、Monica S. Lam、Ravi Sethi、Jeffrey D. Ullman / Addison Wesley / 2006-9-10 / USD 186.80

This book provides the foundation for understanding the theory and pracitce of compilers. Revised and updated, it reflects the current state of compilation. Every chapter has been completely revised ......一起来看看 《Compilers》 这本书的介绍吧!

随机密码生成器
随机密码生成器

多种字符组合密码

Markdown 在线编辑器
Markdown 在线编辑器

Markdown 在线编辑器

HEX CMYK 转换工具
HEX CMYK 转换工具

HEX CMYK 互转工具