angular请求后台 报错 400 (Failed to load resource: the server responded with a status of 400 (Bad Request))

  • A+
所属分类:angular

angular请求后台 报错 400 (Failed to load resource: the server responded with a status of 400 (Bad Request))

原因:请求里带的参数和后台接受的参数不一致。

比如,后台里接受了ids这一参数,而请求里没有带这个参数会报此错。

ZPY

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: