您的位置:首页 > 其它

刚使用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前就可以正常使用。
所以,
<
script
type
=
"text/javascript"
src="<%=path%>/dwr/interface/test.js"></
script
>

这样的顺序才能正常使用。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  dwr
相关文章推荐