|
@@ -119,7 +119,8 @@ WebDataCenter = cc.Class({
|
|
|
xhr.setRequestHeader("Content-Type","application/x-www-form-urlencoded;charset=UTF-8");
|
|
xhr.setRequestHeader("Content-Type","application/x-www-form-urlencoded;charset=UTF-8");
|
|
|
xhr.onreadystatechange = function () {
|
|
xhr.onreadystatechange = function () {
|
|
|
if (xhr.readyState === 4 && (xhr.status >= 200 && xhr.status < 300)) {
|
|
if (xhr.readyState === 4 && (xhr.status >= 200 && xhr.status < 300)) {
|
|
|
- let response = xhr.responseText;
|
|
|
|
|
|
|
+ let response = xhr.responseText.replace(/\s+/g, '');
|
|
|
|
|
+ cc.log("post data return responseText: ", response);
|
|
|
callback(JSON.parse(response));
|
|
callback(JSON.parse(response));
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|