|
本帖最后由 shuaigej 于 2016-6-1 10:48 编辑
我在前台调action,
alert("ZYCD1:" + td.getValueByID("sData1", rowid));
alert("PersonID:" + td.getValueByID("sCreatorPersonID", rowid));
var params = new biz.Request.ActionParam();
params.setString("id",td.getValueByID("sData1", rowid));
params.setString("userid",td.getValueByID("sCreatorPersonID", rowid));
biz.Request.sendBizRequest({
dataType: "application/json",
action: "daiban",
"context" : this.getContext(),
parameters: params,
callback: function(result) {
if (result.state) {
temp1=result.response;
}
}
})
alert都能取到正确的值,但传到后台后,就只能接收到一个:
public static String daiban(String id,String userid) throws Exception {
System.out.println("id="+id);
System.out.println("userid="+userid);
}
而且接收到的id和userid是乱的,即id值为null,userid取到的是id的值
控制台报告:
id=null
userid=F9C18D9F43BC42B784C6E3C7FE661148
其他的都没报错
实际id的值才是F9C18D9F43BC42B784C6E3C7FE661148
action.m页面也都保存了如下:
|
|