JQuery Not Found



我收到一个 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 上传照片,并将演示.js操作修改为

$('#fileupload').fileupload({
// Uncomment the following to send cross-domain cookies:
//xhrFields: {withCredentials: true},
url: '/uploadphoto'
});
)

错误并没有告诉你它没有找到jQuery。该错误告诉您jQuery得到了404响应,这意味着当它联系网址"uploadphoto"时"未找到"。检查网址"上传照片"是否确实具有 POST 请求处理程序。

最新更新