mirror of https://github.com/layui/layui
优化 upload 重载处代码细节
parent
ad5e575b31
commit
504e44ab49
|
@ -493,17 +493,17 @@ layui.define(['lay','layer'], function(exports){
|
|||
send();
|
||||
};
|
||||
|
||||
//重置方法
|
||||
// 重置方法
|
||||
Class.prototype.reload = function(opts){
|
||||
options = options || {};
|
||||
delete options.elem;
|
||||
delete options.bindAction;
|
||||
opts = opts || {};
|
||||
delete opts.elem;
|
||||
delete opts.bindAction;
|
||||
|
||||
var that = this;
|
||||
var options = that.config = $.extend({}, that.config, upload.config, opts);
|
||||
var next = options.elem.next();
|
||||
|
||||
//更新文件域相关属性
|
||||
// 更新文件域相关属性
|
||||
next.attr({
|
||||
name: options.name,
|
||||
accept: options.acceptMime,
|
||||
|
|
Loading…
Reference in New Issue