获得DWR的返回值 ,其中getAllCKTypeByDictionary为DWRCKManager中的一个函数,返回类型为String
function callDWRCKManagergetAllCKTypeByDictionary(){
var type;
DWREngine.setAsync(false);
DWRCKManager.getAllCKTypeByDictionary(function(result){
if(result!="[]"){
type = result;
}
});
DWREngine.setAsync(true);
return type;//该处返回值及DWR后台返回的值
}