//根据资源的ID去查找 this.classArray = []; for(var c in this.comboData.classId){ this.classArray.push({ text:this.comboData.classId[c], value:c }); }
comboData:{ classId:{1: "课程教案", 2: "作业练习", 4: "课件", 5: "测试试题", 6: "实验实训", 7: "其他资源", 8: "视频资源", 9: "课程导学", 10: "教学内容", 11: "教学资料", 12: "教学进度", 13: "预习资料"} }