如何在js里获取元素class的信息?发布于 6 年前作者 jing7716113 次浏览最后编辑 6 年前来自 ask例如<view class=“myClass”></view> .myClass{ color:red; } 那么在js中,如何获得这个red?