HBCMS更多的中文手册参考:

createAttribute Method

DHTML文档教程

Creates an attribute object爓ith a specified name.

dhtml语法

oattribute = document.createattribute(sname)

parameters

sName Required. String that sets the attribute object's name.

return value

returns a reference to the new attribute object.

Remarks

This method will fail if the sName parameter value contains invalid (non Unicode transformation format (UTF)-16) characters .

是否符合公共标准

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

Applies To

document