writeAttribute(element, attribute[, value = true]) -> HTMLElement writeAttribute(element, attributes) -> HTMLElement
新增、修改或移除指定的 element 属性。属性参数可以是一个 hash 对象,也可以是一个名/值对。
element