getAttribute (). 括號放的是('屬性'). 函式會回傳該網頁元素的屬性。 如果該屬性不存在,其回傳值會是 null或 "" (空字串). 用法/語法: var attribute = element.
確定! 回上一頁