Browse Source

无JIRA 严格模式

es6
zsmj 3 years ago
parent
commit
9a78e2662c
  1. 9
      src/base/single/input/file.js

9
src/base/single/input/file.js

@ -333,11 +333,10 @@
if (isFunction(handler.onloadstart)) { if (isFunction(handler.onloadstart)) {
handler.onloadstart(rpe, {}); handler.onloadstart(rpe, {});
} }
with (document.body || document.documentElement) { var d = document.body || document.documentElement;
appendChild(iframe); d.appendChild(iframe);
appendChild(form); d.appendChild(form);
form.submit(); form.submit();
}
return handler; return handler;
}; };
@ -652,7 +651,7 @@
}); });
}, },
setMaxFileLength: function(v) { setMaxFileLength: function (v) {
this.options.maxLength = v; this.options.maxLength = v;
if (this.wrap) { if (this.wrap) {
this.wrap.maxLength = v; this.wrap.maxLength = v;

Loading…
Cancel
Save