刚使用DWR出现问题,DWRenginebeforeincludingthisfile-成都快上网建站

刚使用DWR出现问题,DWRenginebeforeincludingthisfile

'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');

原因是:

<scripttype="text/javascript"src="<%=path%>/dwr/interface/test.js">script>
<scripttype="text/javascript"src="<%=path%>/dwr/engine.js">script>
<scripttype="text/javascript"src="<%=path%>/dwr/util.js">script>

这个顺序在DWR3.0已经不是这样了,2.0前就可以正常使用。

所以,


<scripttype="text/javascript"src="<%=path%>/dwr/engine.js">script>
<scripttype="text/javascript"src="<%=path%>/dwr/util.js">script>

<scripttype="text/javascript"src="<%=path%>/dwr/interface/test.js">script>

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


当前名称:刚使用DWR出现问题,DWRenginebeforeincludingthisfile
文章源于:http://kswjz.com/article/geoiph.html
扫二维码与项目经理沟通

我们在微信上24小时期待你的声音

解答本文疑问/技术咨询/运营咨询/技术建议/互联网交流