NS_Binding_Aborted error for ajax function
来源:互联网 发布:同城约爱用什么软件 编辑:程序博客网 时间:2024/05/18 05:31
坑。。。。。。。。。。。。。。
在提交的时候,发现,ajax提交的请求无法请求到Spring MVC里面去!!!奇怪了。但是,在请求的JavaScript函数当中,如果用一个alert弹出页面,即可请求到服务器去。于是乎,抓包发现,ajax的post请求的状态为NS_Binding_Aborted。经过网上的查证,发现是还没有响应这个ajax的时候,这个页面被刷新了。
This is caused by another request that abort your request. Generally
when your goal is reload data o all page just end request and don’ts
is synchronized request, a little novell error. In this case the
“return ” sentence is the problem, the return sentence must be in
success seccion.
后来才发现,原来form表单中,不能使用button这个标签,而是要用input标签,type=“button”,这样不会刷新页面,于是每次都可以请求成功了。
0 0
- NS_Binding_Aborted error for ajax function
- Jquery的ajax请求失败:error:function(){}
- 一个包含error:function的ajax请求
- jquery ajax error:function调试信息
- error: invalid storage class for function 'XXXX'
- error: no matching function for call to
- error: invalid storage class for function
- error: invalid storage class for function
- Uncaught TypeError: $.ajax(...).error is not a function
- AJAX请求状态码返回200却跳到error的function
- Troubleshooting for error :Call to undefined function mysql_connect()
- error: no matching function for call to 'MainWindow::connect(*&, ...)
- 关于“error: conflicting types for 'function'”编译错误的分析
- PostgreSQL ERROR: cache lookup failed for function 98810
- 关于”error conflicting types for function”编译错误的分析
- error:conflicting types for 'function name'错误原因
- Ajax function
- Q -function/error function
- 一张图带你了解Android5.0中的colorPrimary、colorPrimaryDark、colorAccent
- 转:浅析PageRank算法
- leetcode 88. Merge Sorted Array
- 不通过setter方法改变私有变量值
- 内存管理
- NS_Binding_Aborted error for ajax function
- LintCode 字符串查找
- react-lazyload 懒加载的好处与使用
- 我在myeclipse中编辑的时候,光标突然变宽了,而且再插入字符会把后面的内容覆盖掉,请问该如何解决?
- 设计模式读书笔记-----代理模式
- Python中的函数装饰器
- 基础知识补充
- 数据库中主键与索引的区别
- Intellij idea的maven依赖图