如果該屬性不存在,其回傳值會是 null或 "" (空字串); 詳見 Notes 。 語法. var attribute = element.getAttribute( attributeName );. where. attribute is a string ...
確定! 回上一頁