var emp = [\'abs\',\'dsf\',\'sdf\',\'fd\']
var index = emp.indexOf(\'fd\');
if (index > -1) {
emp.splice(index, 1);
}
alert(emp);
var reqAnswerObj={};//将集合转为map操作。
for (var answer of this.data.reqAnswer){
var bid = answer.questionBId ? answer.questionBId : 0;
reqAnswerObj[answer.questionId+"_"+bid] = answer;
}
console.log(reqAnswerObj);
dialog组件
pages页面