收藏
回答

安卓和IOS解析的JSON不一样?

安卓的真机调试的时候:

{data: "{"zgid":0}", profile: {…}, header: {…}, statusCode: 200, cookies: Array(0), …}

cookies: []

data: "{"zgid":0}"

errMsg: "request:ok"

header: {Server: "Microsoft-IIS/7.5", Cache-Control: "no-cache", Content-Length: "16", Date: "Mon, 24 Aug 2020 04:12:28 GMT", X-Powered-By: "ASP.NET,PHP/7.0.15", …}

profile: {transportRttEstimate: 90, domainLookUpStart: 1598242348709, responseEnd: 1598242349333, sendBytesCount: 609, redirectStart: 0, …}

statusCode: 200

__proto__: Object



IOS真机调试:

{data: {…}, header: {…}, statusCode: 200, cookies: Array(0), errMsg: "request:ok"}

cookies: []

data: {zgid: 0}

errMsg: "request:ok"

header: {Cache-Control: "no-cache", Content-Type: "text/html;charset=utf-8", Server: "Microsoft-IIS/7.5", X-Powered-By: "PHP/7.0.15,ASP.NET", Date: "Mon, 24 Aug 2020 04:07:40 GMT", …}

statusCode: 200

__proto__: Object

回答关注问题邀请回答
收藏

1 个回答

登录 后发表内容
问题标签