JavaScript操作DOM的方法有:1、获取节点,代码为【document.getElementById();】;2、css选择器,代码为【document.querySelector()】;3、文档结构,代码为【parentNod】。
技术文章 / 下载软件趣味内容 / 专业带飞