var dataDetail = justep.xbl("dataDetail");// 主页中子表
for ( var i in data2) {
for ( var j = 0; j < dataDetail.getCount(); j++) {
var rowid = dataDetail.getID(i);
var v = dataDetail.getValue('fSP',rowid);
if(data2[i].fSP==v){
var n=dataDetail.getValue("fSCRKSL",rowid);
var m=dataDetail.getValue("fYRKSL",rowid);
var k=justep.String.toInt(m)+justep.String.toInt(n);
}
}
dataDetail.newData();
dataDetail.setValue("fSCRKSL",k);
dataDetail.setValue("fGSMC", data2[i].fGSMC);
dataDetail.setValue("fGYS", data2[i].fGYS);
dataDetail.setValue("fSP", data2[i].fSP);
dataDetail.setValue("fSL", data2[i].fSL);
}
内层循环中的变量K,在外层循环中怎么获取啊?外层循环中取的K是undifined
智慧大石
MYYA
交互式爱情
手掌心
相关分类