javascript请求到的数据转换问json字符串


代码是 
+ JSON.stringify(response));/




return timeoutFetch( fetch( handleUrl(url)(params) , { method: 'GET' , headers: header})) . then((response) => { if (response.ok) { console. log( "请求你啊我这里我这里我这里" + JSON. stringify(response)) ;//这里是关键 return response. json() } else { Toast. show( '服务器繁忙,请稍后再试; \r\n Code:' + response. status) } }) . then((response) => { console. log( "数据里" ) ; RootHUD. hidden()

猜你喜欢

转载自blog.csdn.net/liuxiaoxiaobo/article/details/79760348