level 1
speed1983000
楼主
function getChose(grid)
{
var result,ids;
grid.store.each(function (record){
ids += record.data.VENDOR_ID + ",";
});
var list = ids.split(",");
for(var i=0; i<list.length; i++)
{
if(result.indexOf(list(i))== (-1))
{
result = result + list(i) + ",";
}
Wb.get('text1').setValue(result);
}
}
result.indexOf(list(i))== (-1)这句话报错了,请问如何修改?
2015年01月14日 03点01分
1
{
var result,ids;
grid.store.each(function (record){
ids += record.data.VENDOR_ID + ",";
});
var list = ids.split(",");
for(var i=0; i<list.length; i++)
{
if(result.indexOf(list(i))== (-1))
{
result = result + list(i) + ",";
}
Wb.get('text1').setValue(result);
}
}
result.indexOf(list(i))== (-1)这句话报错了,请问如何修改?