Project/layuiadmin/layui/lay/modules/upload.js
(开头部分) 12KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/** layui-v2.3.0 MIT License By https://www.layui.com */
;
layui.define("layer",
function (e) {
"use strict";
var i = layui.$,
t = layui.layer,
n = layui.hint(),
a = layui.device(),
o = {
config: {},
set: function (e) {
var t = this;
return t.config = i.extend({},
t.config, e),
t
},
on: function (e, i) {
return layui.onevent.call(this, r, e, i)
}
},
l = function () {
var e = this;
return {
upload: function (i) {
e.upload.call(e, i)
},
config: e.config
}
},
r = "upload",
u = "layui-upload-file",
c = "layui-upload-form",
f = "layui-upload-iframe",
s = "layui-upload-choose",
p = function (e) {
var t = this;
t.config = i.extend({},
t.config, o.config, e),
t.render()
};
p.prototype.config = {
accept: "images",
exts: "",
auto: !0,
bindAction: "",
url: "",
field: "file",
method: "post",
data: {},
drag: !0,
size: 0,
number: 0,
multiple: !1
},
p.prototype.render = function (e) {
var t = this,
e = t.config;
e.elem = i(e.elem),
e.bindAction = i(e.bindAction),
后面还有 298 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。