https://www.jb51.net/article/59516.htm
安装https://code.visualstudio.com/docs
安装插件:https://blog.csdn.net/qq_41646249/article/details/103163447
1.通过ID获取(getElementById)
document.getElementById('id')
2.通过name属性(getElementsByName)
document.getElementsByName('name')
3.通过标签名(getElementsByTagName)
document.getElementsByTagName('p');
varoDiv = document.getElementById('divId');
oDiv.getElementsByTagName('p');
网友评论