mirror of https://github.com/layui/layui
优化 upload 重载处代码细节
parent
ad5e575b31
commit
504e44ab49
|
@ -495,9 +495,9 @@ layui.define(['lay','layer'], function(exports){
|
||||||
|
|
||||||
// 重置方法
|
// 重置方法
|
||||||
Class.prototype.reload = function(opts){
|
Class.prototype.reload = function(opts){
|
||||||
options = options || {};
|
opts = opts || {};
|
||||||
delete options.elem;
|
delete opts.elem;
|
||||||
delete options.bindAction;
|
delete opts.bindAction;
|
||||||
|
|
||||||
var that = this;
|
var that = this;
|
||||||
var options = that.config = $.extend({}, that.config, upload.config, opts);
|
var options = that.config = $.extend({}, that.config, upload.config, opts);
|
||||||
|
|
Loading…
Reference in New Issue