后期一点会做全面整理,先按学习到的内容做记录。
DOM 文档对象模型
- 获取元素
var myHeading = document.querySelector('h1');
muHeading.textContent = "Hello word!";
后期一点会做全面整理,先按学习到的内容做记录。
var myHeading = document.querySelector('h1');
muHeading.textContent = "Hello word!";