HTML DOM Element isSupported() 方法

定义和用法

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

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

实例

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

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

亲自试一试

语法

elementisSupported(feature, version)

Parameter

Parameter Description
feature Required. Check if the feature is supported.
version Optional. The version of the feature.

Return value

Type Description
Boolean value If the feature is supported, it is true, otherwise it is false.