优化 upload 重载处代码细节

pull/1364/head
贤心 2023-09-03 12:42:48 +08:00 committed by GitHub
parent ad5e575b31
commit 504e44ab49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -493,17 +493,17 @@ layui.define(['lay','layer'], function(exports){
send(); send();
}; };
//重置方法 // 重置方法
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);
var next = options.elem.next(); var next = options.elem.next();
//更新文件域相关属性 // 更新文件域相关属性
next.attr({ next.attr({
name: options.name, name: options.name,
accept: options.acceptMime, accept: options.acceptMime,