参考 id()

id()

Sets the element's ID using a given string.

Calling myElement.id() without an argument returns its ID as a string.

示例

语法

id(id)
id()

参数

id
String: ID of the element.

返回值

String: ID of the element.

相关参考