You can also use setAttribute to modify the value for an existing attribute, such as the id or class attributes: someElement.setAttribute("id", "newId") ...
確定! 回上一頁