📅  最后修改于: 2022-03-11 15:04:07.149000             🧑  作者: Mango
var allAttributes = jQuery('.class').map(function() { /* example: .class */
return jQuery(this).data('id'); /* example: id */
}).get();
/* Returns all attributes witin an array like: ["1", "2", "3", "4"] */
console.log(allAttributes);