---
title: "juery 循环"
author: "rainyear"
date: "2012-06-07T12:28:11Z"
tags: []
categories: ["非技术"]
slug: "juery"
draft: false
lastmod: "2012-06-07T12:28:11Z"
id: 1554315
url: "https://rainyear.iteye.com/blog/1554315"
---

$(".mandatory").each(function(){
        var field = $(this);
        if (!checkMandatory(field)) {
            hasErrors = true;
        }
    });