KIOSHIROI's CS-learning Road

笔者在做软件工程大作业时遇到了这样一个问题:

invalid character '-' in numeric literal错误
plain

经笔者检查,错误原因为:前端向后端发送的是from-data格式,后端写的逻辑是把前端发过来的信息当做JSON格式解析,所以就一直错,格式不匹配。

只需要把这个’Content-Type’从’application/form-data’改成’application/json’.

参考文献#

https://blog.csdn.net/csde12/article/details/121764104

invalid character '-' in numeric literal错误
https://kioshiroi.github.io/blog/invalid-character-go-vue
Author KIOSHIROI
Published at 2024年11月26日
Comment seems to stuck. Try to refresh?✨