加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

刚使用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'

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前就可以正常使用。

所以,


>

<scripttype="text/javascript"src='#'" /dwr/interface/test.js"></script>

这样的顺序才能正常使用。

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读