这是js命令的语句,想将多选框内的001,002,003的值,添加到表格中//
var category=Forguncy.Page.getCell("category").getValue();
if(category!=null){
if (category.lastIndexOf(',')==category.length-1){
categorylist= category.slice(0,category.length-1).split(',');
}else {
categorylist= category.split(',');
}
}
Forguncy.CommandHelper.setVariableValue("品类", categorylist)
//
var sex=Forguncy.Page.getCell("sex").getValue();
if(sex!=null){
var sexlist=sex.split(',');
}
Forguncy.CommandHelper.setVariableValue("性别", sexlist)
//
var location=Forguncy.Page.getCell("location").getValue();
if(location!=null){
locationlist=location.split(',');
}
Forguncy.CommandHelper.setVariableValue("位置", locationlist)
console.log(categorylist);
console.log(sexlist);
console.log(locationlist); |