它注意到HTML文档的HTMLElement对象定义了与所有标准HTML属性相对应的JS属性。 因此,您只需要 setAttribute 用于非标准属性。 例: node.className ...
確定! 回上一頁