2017-08-04 32 views

回答

4

response.body().string();返回響應體轉換爲字符串。例如JSON。

response.body().toString();返回ResponseBody對象的字符串外觀。它的散列,類...

0

response.body().toString(); - 轉換對象responseBody(體()),以字符串

return getClass().getName() + "@" + Integer.toHexString(hashCode());

response.body().string(); - 從服務器響應轉換成字符串;

0

.toString():這將返回字符串格式的對象。

.string():這會返回您的回覆。