獲取和設置屬性getAttribute、setAttribute

getAttribute是一個函數,它只有一個參數,你打算查詢的屬性的名字:css object.getAttribute(attribute)html 示例:函數 <!DOCTYPE html> <html lang = "en"> <head> <meta charset="utf-8"/> <title>Shopping list</title> <style type="text/css"
相關文章
相關標籤/搜索