res = "{\"msg\":\"ok\",\"code\":200,\"data\":{\"url\":\"" + img + "\"}}"; return new HttpResponseMessage { Content = new StringContent(res, System.Text.Encoding.UTF8, "application/json") };
注意 必须用 HttpResponseMessage 类型是 JSON 否者还是带反斜杠输出
博客园 © 2004-2025 浙公网安备 33010602011771号 浙ICP备2021040463号-3