请求接口参数

Posted 世界,太精彩

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了请求接口参数相关的知识,希望对你有一定的参考价值。

// return Vue.http.post(‘/aj_monitor/active‘, {params: params, headers:  {‘Content-Type‘:  ‘application/json‘}})
// return Vue.http.post(‘/aj_monitor/active‘, params, {emulateJSON: true})


默认请求是: {‘Content-Type‘: ‘application/json‘}}

以上是关于请求接口参数的主要内容,如果未能解决你的问题,请参考以下文章