axj-ab_ 1.0.5 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +2 -1
- package/package.json +1 -1
package/index.js
CHANGED
@@ -597,8 +597,9 @@ var ab_ = {
|
|
597
597
|
// 支持formData file var form = new FormData();form.append("file", fileObj);
|
598
598
|
xhrReq(loading, headers, url, posts, callback, init) {
|
599
599
|
var xhr = new XMLHttpRequest()
|
600
|
+
var done = XMLHttpRequest.DONE || 4
|
600
601
|
xhr.onreadystatechange = function () {
|
601
|
-
if (xhr.readyState ===
|
602
|
+
if (xhr.readyState === done) {
|
602
603
|
loading && loading()
|
603
604
|
if (callback) {
|
604
605
|
if (xhr.status === 200) {
|