HBCMS更多的中文手册参考:

hasFeature Method

DHTML文档教程

Returns a value that indicates whether the object implements a specific Document Object Model (DOM) standard.

dhtml语法

bImplemented = implementation.hasFeature(sFeature [, vVersion])

Parameters

sFeature Required. Name of the standard.
XMLDOM Core standard.
HTMLDOM HTML standard.
vVersion Optional. Version number of the standard.
1.0Level 1.

Return Value

Returns one of the following possible values:

trueStandard is implemented.
falseStandard is not implemented.

Remarks

The sFeature parameter is case-insensitive.

DHTML代码范例

The code in the following example uses the hasFeature method to test whether the object implements the DOM HTML standard.

var bSupported = document.implementation.hasFeature("HTML","1.0");

是否符合公共标准

This method is defined in World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 Non-Microsoft link.

Applies To

implementation