gx_tieta/WebRoot/js/whyc-jqueryui.js
@@ -587,7 +587,12 @@ if(isString(options)) { var oldOpts = this.data('testVal'); opts = $.extend({}, opts, oldOpts); opts[attr] = val; if(attr == 'allOpts') { opts = $.extend({}, opts, val); }else { opts[attr] = val; } }else if(isObject(options)){ opts = $.extend(true, {}, defaults, options||{}); } @@ -596,7 +601,7 @@ opts.event = "error"; opts.msg = '请输入正确的正则表达式格式!!!' } //console.log(opts); var testVal = new TestVal(this, opts); this.data('testVal', testVal.opts);