dojox.validate.check验证-设置配置文件

dojox.validate.check验证-设置配置文件,dojo,Dojo,当使用dojox.validate.check(form,profile)时,我们必须设置profile变量 postalCode isNumberFormat的正确格式是什么?我想进行设置,以便可以根据此格式进行验证。我尝试了不同的方法来设置它,但没有太大的成功 变量配置文件={ required: [ "postalCode" ], constraints: { postalCode: dojox.validate.isNumberFormat (How do I set up he

当使用dojox.validate.check(form,profile)时,我们必须设置profile变量

postalCode isNumberFormat的正确格式是什么?我想进行设置,以便可以根据此格式进行验证。我尝试了不同的方法来设置它,但没有太大的成功

变量配置文件={

required: [ "postalCode" ],
constraints: {
    postalCode: dojox.validate.isNumberFormat (How do I set up here)
}
}

谢谢你的帮助

required: [ "postalCode" ],
constraints: {
postalCode: [ dojox.validate.isNumberFormat, {format:["#####-####"]}]
}