|
目前我在后台已经写完了方法,只要前台访问这个action获得返回的list集合,之后将集合中的string对象赋值给前台;
我在前台已经拿到方法的返回值list 需要怎么做能把list中的对象拿出来呢 ,用get()方法不对啊 显示报错,求大神指教
var params = new biz.Request.ActionParam();
params.setString("fzzid", fzzid);
var response = biz.Request.sendBizRequest({
contentType : "application/json",
dataType : "application/json",
action : "queryZZYLAction",
process : fm.getContext().getCurrentProcess(),
activity : fm.getContext().getCurrentActivity(),
parameters : params,
context : fm.getContext()
});
var res = response.responseJSON.data.value;
this.comp("TRCCFL").setValue("BFyesteryear",res.get(0));
|
|