为了账号安全,请及时绑定邮箱和手机立即绑定

vue+axios

vue+axios

Qyouu 2018-08-26 10:38:50
第一种请求方式:let customer_id = localStorage.getItem('customer_id') this.$http.post('/health_record/health_status_list.do',customer_id)使用这种方式从请求回来的数据是空的第二种请求方式:let param = new URLSearchParams(); param.append('customer_id', customer_id); this.$http({     method: 'post',     url: '/health_record/health_status_list.do',    data: param })使用这种方式就有数据
查看完整描述

2 回答

  • 2 回答
  • 0 关注
  • 2131 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号