58

Html5其它补充内容---第三天-我是小谷粒的博客

 6 years ago
source link: http://blog.51cto.com/13517854/2072857
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
四、DOM扩展1、获取元素①document.getElementsByClassName('class')通过类名获取元素,以伪数组形式存在。②document.querySelector('selector')通过CSS选择器获取元素,符合匹配条件的第1个元素。③document.querySelectorAll('selector')通过CSS

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK