简体   繁体   English

未找到 JQuery

[英]JQuery Not Found

I received a Jquery NOT Found error我收到了 Jquery NOT Found 错误
jquery.min.js:4 POST /uploadphoto 404 (Not Found) Though the JQuery is included as https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js jquery.min.js:4 POST /uploadphoto 404 (Not Found) 虽然 JQuery 包含在https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js

I use the demo sample to create a Java uploadphoto in the back end, and modified the demo.js action as我使用demo示例在后端创建了一个Java上传照片,并将demo.js动作修改为

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

)

The error is not telling you that it's not finding jQuery.该错误并没有告诉您它没有找到 jQuery。 The error is telling you that jQuery got a 404 response, meaning "not found" when it contacted the url 'uploadphoto'.该错误告诉您 jQuery 收到 404 响应,这意味着当它联系 url 'uploadphoto' 时“未找到”。 Check that the url 'uploadphoto' actually has a POST request handdler.检查 url 'uploadphoto' 实际上有一个 POST 请求处理程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM