获取和设置属性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"
相关文章
相关标签/搜索