flutter使用dio网络接口调用
2018-11-20 本文已影响0人
王保全_1098
Dio dio = new Dio();
dio.options.baseUrl = ServerUrl.base;
FormData formData = new FormData.from({
"mobile": "13981983532",
"pwd": "983532",
});
Response response = await dio.post(ServerUrl.token, data: formData);
print(response.data.toString());