@icreate/core
Advanced tools
Comparing version 0.0.6 to 0.0.7
@@ -574,3 +574,3 @@ /* | ||
xhr.setRequestHeader('Content-Type', _option.contentType); | ||
xhr.send(_option.data); | ||
xhr.send(JSON.stringify(_option.data)); | ||
} | ||
@@ -582,2 +582,3 @@ else if (_option.method.toUpperCase() === 'GET') { | ||
} | ||
console.log(_option.url + (params.length > 0 ? "?" + params.join('&') : '')); | ||
xhr.open(_option.method, _option.url + (params.length > 0 ? "?" + params.join('&') : ''), _option.async); | ||
@@ -590,2 +591,3 @@ xhr.send(null); | ||
Imedx.prototype._getXMLHttpRequest = function () { | ||
// let XMLHttpRequest = require('xhr2'); | ||
var xhr = new XMLHttpRequest(); | ||
@@ -592,0 +594,0 @@ if (xhr.overrideMimeType) { |
@@ -579,3 +579,3 @@ (function (global, factory) { | ||
xhr.setRequestHeader('Content-Type', _option.contentType); | ||
xhr.send(_option.data); | ||
xhr.send(JSON.stringify(_option.data)); | ||
} | ||
@@ -587,2 +587,3 @@ else if (_option.method.toUpperCase() === 'GET') { | ||
} | ||
console.log(_option.url + (params.length > 0 ? "?" + params.join('&') : '')); | ||
xhr.open(_option.method, _option.url + (params.length > 0 ? "?" + params.join('&') : ''), _option.async); | ||
@@ -595,2 +596,3 @@ xhr.send(null); | ||
Imedx.prototype._getXMLHttpRequest = function () { | ||
// let XMLHttpRequest = require('xhr2'); | ||
var xhr = new XMLHttpRequest(); | ||
@@ -597,0 +599,0 @@ if (xhr.overrideMimeType) { |
@@ -18,3 +18,3 @@ "use strict"; | ||
* @LastEditors: 文贝 | ||
* @LastEditTime: 2022-02-09 23:34:36 | ||
* @LastEditTime: 2022-02-10 22:41:39 | ||
* @Descripttion: | ||
@@ -172,3 +172,3 @@ * @FilePath: \src\core\imedx.ts | ||
xhr.setRequestHeader('Content-Type', _option.contentType); | ||
xhr.send(_option.data); | ||
xhr.send(JSON.stringify(_option.data)); | ||
} | ||
@@ -180,2 +180,3 @@ else if (_option.method.toUpperCase() === 'GET') { | ||
} | ||
console.log(_option.url + (params.length > 0 ? "?" + params.join('&') : '')); | ||
xhr.open(_option.method, _option.url + (params.length > 0 ? "?" + params.join('&') : ''), _option.async); | ||
@@ -188,2 +189,3 @@ xhr.send(null); | ||
Imedx.prototype._getXMLHttpRequest = function () { | ||
// let XMLHttpRequest = require('xhr2'); | ||
var xhr = new XMLHttpRequest(); | ||
@@ -190,0 +192,0 @@ if (xhr.overrideMimeType) { |
{ | ||
"name": "@icreate/core", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "keywords": [], |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
178473
2137