var arr = [] $(".class_name").map(funciton() { arr.push($(this).attr("attr_name")) })
参考文献
Get the attribute value of each element from a jQuery set, into an array
var arr = [] $(".class_name").map(funciton() { arr.push($(this).attr("attr_name")) })
Get the attribute value of each element from a jQuery set, into an array