我收到Jquery NOT Found错误
jquery.min.js:4 POST /uploadphoto 404 (未找到),尽管JQuery包含在https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js中
我使用演示样例在后端创建一个Java uploadphoto,并将demo.js操作修改为
$('#fileupload').fileupload({
// Uncomment the following to send cross-domain cookies:
//xhrFields: {withCredentials: true},
url: '/uploadphoto'
});
)发布于 2019-11-26 04:21:56
这个错误并没有告诉你它没有找到jQuery。这个错误告诉你jQuery收到了一个404响应,这意味着当它联系到url 'uploadphoto‘时“找不到”。检查url 'uploadphoto‘是否确实有一个POST请求处理程序。
https://stackoverflow.com/questions/59039454
复制相似问题