jQuery("#").autocomplete 出现Status Code:404 Not Found
来源:互联网 发布:陈浩民 妻子 知乎 编辑:程序博客网 时间:2024/05/22 11:43
1. 用JQuery的autocomplete请求,之前是好的,后面修改了些代码,但是完全没有修改跟这个方法相关的代码和参数,这个方法竟然报错了,有点无语的感觉,
用spring mvc提交一般是自动封装参数类型不对,如经常出错的Date和Number类型,前者需要经过特殊处理,后者则要保证前端输入框的参数是数字,能够转成Number类型,参数不对则导致请求时出现404错误,这个方法什么也没有改,则报这个错误,而且之前是好的。
2. 后面仔细看了下这个方法,发现项目的所有方法都有baseurl,这个没有,有可能是这个问题,加上baseurl就好了。
jQuery("#acoName").autocomplete({ source: function(request, response) { $.ajax({ type : "POST", url: "<span style="color:#ff0000;">${baseUrl}</span>/async/getAcoName", dataType: "json", data:{ term: request.term }, success: function(data) { response(data); } }); },
0 0
- jQuery("#").autocomplete 出现Status Code:404 Not Found
- 安装opencms时出现HTTP Status 404 – Not Found怎么解决
- JavaEE NetBeans HTTP Status 404 - Not Found
- jquery:Failed to load resource: the server responded with a status of 404 (Not Found)
- 使用jquery插件autocomplete时候出现typeerror:this.source is not a function即与jquery的autocomplete冲突
- Column 'code' not found
- struts2 http status 404 result 'null' not found .
- 68. 使用thymeleaf报异常:Not Found, status=404
- 68. 使用thymeleaf报异常:Not Found, status=404
- the server responded with a status of 404 (Not Found)
- Servlet 出现404 not found 的问题
- 解决wordpress出现404 not found nginx
- apt-get update出现404 Not Found
- jquery.min.map 404 (Not Found)
- Status Code:405 Method Not Allowed
- Swift code into Object-C 出现 ***-swift have not found this file 的问题
- linux中使用code::blocks编译c语言,出现g++ not found
- Failed to load resource: the server responded with a status of 404 (Not Found)
- 《 归·期》
- iOS学习之UISwitch控件两种使用方法和监听
- 第二天-关键字、控制语句
- 根据java编译器规则在Class中搜索匹配指定参数类型表的泛型方法(GenericMethod)
- mysql和eclipse都设置了utf8编码,保存时中文依然乱码
- jQuery("#").autocomplete 出现Status Code:404 Not Found
- Java 设计模式——工场模式(Factory method)
- iOS设计模式——委托(delegate)
- meta标签之viewport
- Objective-C入门18:KVO
- listView使用的万能的BaseAdapter
- UIKit框架的介绍
- Servlet中的GET和POST之间的区别
- Theano 配置记(Anaconda+Theano 0.7+GPU加速+VS2010)