QHotDogNetWork reamx版本实现
import { QHotDogNetWork } from 'qunar-react-native'
serviceType,
url,
param,
method,
requestType,
responseType,
useCache,
cacheKey,
timeout, // 微信基础库>=2.10.0有效
successCallback,
failCallback,
cacheCallback,
serialize
QHotDogNetWork.postRequest(requestParam:object)
// 发起网络请求,返回该网络请求的requestID
const requestID = QHotDogNetWork.postRequest(requestParam);
QHotDogNetWork.cancelNetWorkTask(requestID:int)