400问题有很多原因造成的,今天碰到一个新的失误点,记录一下。
问题:
Failed to load resource: the server responded with a status of 400 (Bad Request)
fyypsydjSave.jsp:1 Uncaught SyntaxError: Unexpected token '<'
at Object.success (fyypsydjSave.jsp:131)
at HTMLIFrameElement.cb (jquery.easyui.min.js:5172)
at HTMLIFrameElement.dispatch (jquery.min.js:2)
at HTMLIFrameElement.h (jquery.min.js:2)
没有进入后台断点,查看network,显示(unable to decode value)
一开始以为是jsp页面的字段与后台字段不一致造成的400错误,对比了一下没问题,后来发现是实体时间字段和页面时间字段的格式不一致造成的,吐血了。
解决方法:把两边的格式改成一致的,我改的前端,最终解决了