From 35fefed0792c40cb99b8d15fa5811bbb5992bff9 Mon Sep 17 00:00:00 2001 From: D:/workspace/chenjingjing/git/gx_tieta/gx_tieta/.gitignore <chenjingjing@LAPTOP-E51P2139> Date: 星期一, 21 一月 2019 10:42:24 +0800 Subject: [PATCH] 修改 --- gx_tieta/WebRoot/js/whyc-jqueryui.js | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gx_tieta/WebRoot/js/whyc-jqueryui.js b/gx_tieta/WebRoot/js/whyc-jqueryui.js index 4c655cf..10db128 100644 --- a/gx_tieta/WebRoot/js/whyc-jqueryui.js +++ b/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 = '璇疯緭鍏ユ纭殑姝e垯琛ㄨ揪寮忔牸寮忥紒锛侊紒' } - + //console.log(opts); var testVal = new TestVal(this, opts); this.data('testVal', testVal.opts); -- Gitblit v1.9.1