Commit 6711cdfb authored by limingzhe's avatar limingzhe

fix: debug

parent a90d118e
...@@ -583,7 +583,7 @@ export abstract class middleLayerBase extends cc.Component { ...@@ -583,7 +583,7 @@ export abstract class middleLayerBase extends cc.Component {
xhr.setRequestHeader('content-type', 'application/json'); xhr.setRequestHeader('content-type', 'application/json');
xhr.onreadystatechange = () => { xhr.onreadystatechange = () => {
console.log('xhr: ', xhr); console.log('xhr: ', xhr.toString());
if (xhr.readyState == 4) { if (xhr.readyState == 4) {
console.log('xhr.responseText : ' + xhr.responseText); console.log('xhr.responseText : ' + xhr.responseText);
callBack(JSON.parse(xhr.responseText)); callBack(JSON.parse(xhr.responseText));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment