JQuery Ajax:uncaught exception: out of memory
来源:互联网 发布:2016最好的网络机顶盒 编辑:程序博客网 时间:2024/06/07 17:54
这应该是像我一样的JQuery初学者很容易犯的错误。使用ajax可以方便地处理异步加载。在表单提交的时候action不能简单地写controller里定义的路径,那样实际请求的时候会加上当前html页面所在目录作为前缀,如果当前的html页面在多级目录下,即与实际的action路径不一致就会报404的错误,为了方便处理我定义了submit的点击事件,运行的时候出现了
后来找到了原因,就是点击的是提交(sumbit)按钮,但是又用到Ajax提交,本身点击submit的时候就是一次请求,里面加上ajax请求就是二次请求,就会报内存溢出。submit是比较特殊的按钮,与form对应,就是不能在type=”submit”的时候又给它另外加click事件。要在onclick里给它加ajax应该把它变成普通的控件,改成a或button都可以,外观boostrap都有办法搞定
0 0
- JQuery Ajax:uncaught exception: out of memory
- 页面报出uncaught exception: out of memory异常
- 页面报出uncaught exception: out of memory异常,如何处理
- html5验证+点击button刷新页面+uncaught exception: out of memory
- AJAX提交数据再firefox中报out of memory
- out of memory
- Out of memory
- out of memory
- android out of memory
- out of memory
- MATLAB: OUT OF MEMORY
- MATLAB out of memory
- 解决out of memory
- Out Of Memory
- android Out of memory
- linux out of memory
- matlab out of memory
- thrift out of memory
- hihocoder 数论四·扩展欧几里德
- JAVA 由图片合成gif文件
- java中的HashTable,HashMap和HashSet
- STL源码笔记(12)—序列式容器之deque(二)
- hibernate3.0 org.dom4j.DocumentException: Connection timed out: connect Nested exception:
- JQuery Ajax:uncaught exception: out of memory
- 第9周阅读项目
- codeforces_664C. International Olympiad
- Java多线程介绍
- 上机实验:分析成绩单
- 【JS 设计模式 】用组合模式来实现树形导航--代码结构思路分析(一)
- Mybatis 插入后立即获取新记录的自增编号
- 汇编语言DosBox下在64位上运行实现编译(masm)与调试即debug命令。
- pcduino与Arduino串口通信