刚使用DWR出现问题,DWR engine before including this file
2013-10-15 22:59
363 查看
'You must include DWR engine before including this file'
js代码:
if (typeof dwr == 'undefined' || dwr.engine == undefined) throw new Error('You must include DWR engine before including this file');
原因是:
这个顺序在DWR3.0已经不是这样了,2.0前就可以正常使用。
所以,
这样的顺序才能正常使用。
js代码:
if (typeof dwr == 'undefined' || dwr.engine == undefined) throw new Error('You must include DWR engine before including this file');
原因是:
这个顺序在DWR3.0已经不是这样了,2.0前就可以正常使用。
所以,
<
script
type
=
"text/javascript"
src="<%=path%>/dwr/interface/test.js"></
script
>
这样的顺序才能正常使用。
相关文章推荐
- dwr出现session error及Uncaught Error: You must include DWR engine before including this file问题
- DWR出现session error及Uncaught Error: You must include DWR engine before including this file
- Uncaught Error: You must include DWR engine before including this file at VM414 ajax.js:1
- jquery获取获取this出错、与键盘事件结合使用出现问题
- 使用Vimdiff出现“Cannot read temp file"的问题
- 使用juery时出现Object doesn't support this property or method的问题。
- expected '=', ',', ';', 'asm' or '__attribute__' before(使用uint16_t uint32_t出现的问题)
- 使用XCode6打开项目以后再用XCode5出现的问题fatal error: malformed or corrupted AST file: 'Unable to load module
- 后台使用Spring MVC 4.15 版本 通过 ajaxFileUpload plugin插件上传文件相应时引起的一个小问题,Chrome、Firefox中出现SyntaxError:unexpected token <
- git 解决Xcode中使用Git时出现This file does not exist at the requested revision.
- 使用NDK编译时出现cannot execute binary file的问题
- 初次使用gdb调试器,出现的No symbol table is loaded. Use the "file" command.问题
- Swift code into Object-C 出现 ***-swift have not found this file 的问题
- 初次使用dwr出现的问题
- 使用ajaxfileupload.js进行文件上传,出现的问题以及解决办法
- 关于Error 1 error C1189: #error : "include 'stdafx.h' before including this file这个错误的解决方法
- 解决使用maven的java web项目导入或新建添加pom配置后出现的有关问题 -cannot be read or is not a valid ZIP file
- 使用XCode6打开项目以后再用XCode5出现的问题fatal error: malformed or corrupted AST file: 'Unable to load module
- 使用XCode6打开项目以后再用XCode5出现的问题fatal error: malformed or corrupted AST file: 'Unable to load module
- 使用Junit4进行单元测试没法实现@BeforeClass注解及出现application.xml没法加载问题