JS

作者: osoLife | 来源:发表于2017-07-04 09:58 被阅读0次

Document 对象属性和方法

// 返回文档中匹配指定的CSS选择器的第一个元素
element=document.querySelector(selectors);

// 返回文档中匹配的CSS选择器的所有元素节点列表
elementList=document.querySelectorAll(selectors);

相关文章

网友评论

      本文标题:JS

      本文链接:https://www.haomeiwen.com/subject/cmuthxtx.html