mirror of
https://gitee.com/layui/layui.git
synced 2025-08-24 16:18:49 +08:00
微调 upload
代码书写规范
This commit is contained in:
parent
da146066d0
commit
cde6a44836
@ -53,7 +53,6 @@ layui.define(['lay','layer'], function(exports){
|
|||||||
var ELEM_CHOOSE = 'layui-upload-choose';
|
var ELEM_CHOOSE = 'layui-upload-choose';
|
||||||
var ELEM_DRAG = 'layui-upload-drag';
|
var ELEM_DRAG = 'layui-upload-drag';
|
||||||
|
|
||||||
|
|
||||||
// 构造器
|
// 构造器
|
||||||
var Class = function(options){
|
var Class = function(options){
|
||||||
var that = this;
|
var that = this;
|
||||||
@ -152,8 +151,8 @@ layui.define(['lay','layer'], function(exports){
|
|||||||
//异常提示
|
//异常提示
|
||||||
Class.prototype.msg = function(content){
|
Class.prototype.msg = function(content){
|
||||||
return layer.msg(content, {
|
return layer.msg(content, {
|
||||||
icon: 2
|
icon: 2,
|
||||||
,shift: 6
|
shift: 6
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user