'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');
原因是:
<
script
type
=
"text/javascript"
src=\'#\'" /dwr/interface/test.js"></
script
>
src=\'#\'" /dwr/engine.js"></
>
src=\'#\'" /dwr/util.js"></
>
这个顺序在DWR3.0已经不是这样了,2.0前就可以正常使用。
所以,
>
<
script
type
=
"text/javascript"
src=\'#\'" /dwr/interface/test.js"></
script
>
这样的顺序才能正常使用。
原文链接:https://www.f2er.com/ajax/165724.html