您的位置:首页 > 其它

dwr3.0 需要注意的问题

2010-06-29 16:00 218 查看
网上有很多关于dwr的教程,但是都比较老,今天整合了一个dwr3.0,结果弄死弄活就是没出来

ARN Call:205 - No methods called class com.dwr.DoubleSelect.getChildType' are applicable for the passed parameters.

一直就报这个错,虽然知道是参数不匹配,可是谁知道是错在回调这呢。

function getChildrenType() {

        var parentId = dwr.util.getValue("parents");

        doubleSelectService.getChildType(setChildList, parentId);

    }

    function setChildList(data) {

        dwr.util.removeAllOptions("children");

        dwr.util.addOptions("children", data);

    }

 

红色标注的那部分必须是参数,回调函数(至少3.0里面是要这样写,不然就报错),网上的教程可以不像这样写,真是郁闷了。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  dwr function methods class