js请求URL尾端[object Object]导致http400请求报错问题

【问题】

 【原因】

我的原因是jq版本太低,post请求所以才报错。

【解决】

 jq版本提高或使用ajax方法。好像也可能是格式错了,格式要简化

 $.post(baseURL+"/event",{eventId:"0b693c45-1e3e-4aed-970c-3458640841b5"},function (res) {
             console.log(res);
  });

 

 

posted @ 2021-04-27 10:42  changlinlo  阅读(225)  评论(0编辑  收藏  举报