getElementById如何获取class值
<divclass="ho"id="scrolldIV"></div><divclass="hoe"id="scrolldIV"></div><divclass="hoe...
<div class="ho" id="scrolldIV"></div>
<div class="hoe" id="scrolldIV"></div>
<div class="hoee" id="scrolldIV"></div>
js:
var t = document.getElementById('scrolldIV'); 展开
<div class="hoe" id="scrolldIV"></div>
<div class="hoee" id="scrolldIV"></div>
js:
var t = document.getElementById('scrolldIV'); 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询