直接代码 if ($("#toCreateIteration").valid()) { console.log("校验通过") }else { return false; } 选中表单,直接调用valid()方法即可