juery 循环 rainyear · 2012-06-07 12:28 · JS ,JQUERY和CSS · 非技术 · Markdown $(".mandatory").each(function(){ var field = $(this); if (!checkMandatory(field)) { hasErrors = true; } });