会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
博客园
super.hill
记录搬砖中遇到的坑,欢迎批评指导!
博客园
::
首页
::
博问
::
闪存
::
新随笔
::
联系
::
订阅
::
管理
::
公告
2017年12月5日
js和jquery判断该元素中是否有指定class
摘要: <div class="test">test</div> var t = document.getElementsByClassName('test'); //[div.test] console.log(t[0].getAttribute('class') 'test'); //true // /
阅读全文
posted @ 2017-12-05 17:31 超岭
阅读(308)
评论(0)
推荐(0)
编辑
博客园