uni.request({
url: _this.facilityUrl + 'checkResult/createInfo',
method: 'POST',
contentType: 'application/json',
dataType: 'json',
data: JSON.stringify(checkResultInfo),
success: (res) => {
为何这段代码里,没有出现header,也能用?
【 在 guestking 的大作中提到: 】
: 你可以稍微看一下http协议
: 简单来说ContentType表示你的request的body里面的数据是什么格式的
: 如果你的请求是get,那就没有body,自然就不需要指定ContentType
: ...................
--
FROM 120.242.252.*