JQuery validate问题

var options = "rules: {
companyCode11: {
minValue: n,
maxValue:x
}
},
messages: {
companyCode11: {
minValue: "输入值必须大于n",
maxValue: "不能大于x"

            }
         }";

validateOper:function(options) {
return $("#formObject").validate(options).form();
在这里我要调用addMethod方法去设置新的校验,我写的是
$.validator.addMethod("minValue", function(value,param) {
return value > param;
}, "输入值必须大于!");
我要实现这个怎么实现?options组装成的样子可以直接调用validate()方法吗?

[code="javascript"]jQuery.validator.addMethod("RangeLength", function(value, element, param) {

return this.optional(element) || ( length >= param[0] && length <= param[1] );

}, "请确保输入的值在3-15长度");

companyCode11: {

RangeLength:[3,15]
}
//其中param 就是 addMethod中的传入的参数[/code]

[code="javascript"] $.validator.addMethod("demojava", function (value, element) {
return this.optional(element) || value.match("/^[\u0391-\uFFE5]+$/");
}, "用户名只能包括中文");//验证false时提示信息
$("#from1").validate({
rules: {
txtUid: {
required: true,
demojava: true
},
txtMobile: {
required: true
}
}
});[/code]

[code="javascript"]var options = "rules: {
companyCode11: {
minValue: true,
maxValue:x
}
},
messages: {
companyCode11: {
minValue: "输入值必须大于n",
maxValue: "不能大于x"

            }
         }";[/code]