刚使用DWR出现问题,DWR engine before including this file
发布时间:2020-12-16 00:51:37 所属栏目:百科 来源:网络整理
导读:'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"
'You must include DWR engine before including this file' 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前就可以正常使用。 所以, >
这样的顺序才能正常使用。 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |