扫码关注官方订阅号
为什么第一种方式就可以为请求添加参数,官方的第二种方法就是不能添加参数呢~~求救~~~
ringa_lee
this.$http.get(url, { params: your_params })
If your web server can't handle requests encoded as application/json, you can enable the emulateJSON option. This will send the request as application/x-www-form-urlencoded MIME type, as if from an normal HTML form.
Vue.http.options.emulateJSON = true;
搭车问下题主,解决跨域的问题直接添加"withCredentials: true"吗?
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
Legacy web servers
If your web server can't handle requests encoded as application/json, you can enable the emulateJSON option. This will send the request as application/x-www-form-urlencoded MIME type, as if from an normal HTML form.
搭车问下题主,解决跨域的问题直接添加"withCredentials: true"吗?