hdw
2018-12-06 417c6db1ab7698f625bcc6452c2936981fade14b
gx_tieta/WebRoot/js/whyc-jqueryui.js
@@ -484,6 +484,7 @@
   var TestVal = function(ele, options) {
      this.ele = ele;
      this.opts = options;
      this.ele.data('testVal', options);
   };
   var _proto = TestVal.prototype;
   
@@ -587,7 +588,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 +602,7 @@
         opts.event = "error";
         opts.msg = '请输入正确的正则表达式格式!!!'
      }
      //console.log(opts);
      var testVal = new TestVal(this, opts);
      this.data('testVal', testVal.opts);