当前位置: 代码迷 >> Web前端 >> DWR 出现missing method or missing parameter converts异常
  详细解决方案

DWR 出现missing method or missing parameter converts异常

热度:797   发布时间:2012-10-30 16:13:36.0
DWR 出现missing method or missing parameter converts错误

前几天web用到DWR 看了几个例子

DWR和spring的配置很简单这里就不详细介绍了

但是配置好了总是报missing method or missing parameter converts;
参数有四个 都是String类型的 也不需要其他特殊配置

找了好久终于发现

必须将String类型声明为var 再将变量传入 DWR才能获取参数? 汗死!!

例如

dwrManager.say("hello","smollville");? //错误 missing method or missing parameter converts

正确写法:

var str="hello";

var name="smollville";

dwrManager.say(str,name);

?

换了写法以后解决了..茫然..

  相关解决方案