HTML DOM Element isSupported() 方法

定义和用法

isSupported() 方法检测指定节点是否支持指定特性。

isSupported() 方法已被弃用。请勿使用它。

实例

检查元素是否支持 Core 2.0 版:

element.isSupported("Core", "2.0");

亲自试一试

语法

element.isSupported(feature, version)

参数

参数 描述
feature 必需。检查是否支持该特性。
version 可选。特性的版本。

返回值

类型 描述
布尔值 如果支持该特性,则为 true,否则为 false。


http://www.vxiaotou.com