`

DWRUtil未定义解决

    博客分类:
  • DWR
阅读更多
<script type="text/javascript"> function hello() { var user = $('user').value; alert(user); Hello.hello(user, callback); } function callback(msg) { alert(msg); DWRUtil.setValue('result', msg); } </script> 下载的dwr3,一直提示DWRUtil未定义,添加xalan.jar也不好使 解决办法:在DWRUtil.setValue('result', msg);前加入 if (typeof window['DWRUtil'] == 'undefined') window.DWRUtil = dwr.util; (发现别人早已解决)
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics