我有一个带有dom元素的jQuery对象(为waypoint.js存储元素)。我想从这个对象中获取类。问题是我不能有选择地这样做,因为我得到了"...不是一个函数“错误。我使用的是jquery-3.2.1.min.js。printing some weird data, same result as
console.log($(('.data')[5]).attr("class"))
我有多个类名为"level1“的对象(这是在asp.net上构建的,元素不允许在这里设置ID )$(".level1")[1].css({"background-color":"yellow"});Error: Object doesn't support property or method 'cs