📅  最后修改于: 2022-03-11 15:01:56.956000             🧑  作者: Mango
var listItems = $("#productList li");
listItems.each(function(idx, li) {
var product = $(li);
// and the rest of your code
});