📅  最后修改于: 2022-03-11 15:02:34.750000             🧑  作者: Mango
//option 1:
checkboxes.filter(":checked").map(function () {
return this.value;
}).get()
//Option 2
var selected = [];
$('[name="price[]"]:checked').each(function(checkbox) {
selected.push(checkbox);
});