微调 upload 代码书写规范

This commit is contained in:
贤心 2023-06-23 14:32:31 +08:00
parent da146066d0
commit cde6a44836

View File

@ -53,7 +53,6 @@ layui.define(['lay','layer'], function(exports){
var ELEM_CHOOSE = 'layui-upload-choose';
var ELEM_DRAG = 'layui-upload-drag';
// 构造器
var Class = function(options){
var that = this;
@ -152,8 +151,8 @@ layui.define(['lay','layer'], function(exports){
//异常提示
Class.prototype.msg = function(content){
return layer.msg(content, {
icon: 2
,shift: 6
icon: 2,
shift: 6
});
};