作者:galsu99 | 来源:互联网 | 2023-09-08 09:02
前端代码
{
{item.name}}
选择课程
css代码:
js代码:
tapCourse:function(index,item){
let that = this;
that.courselist[index]['checked'] = !item.checked;
if(item.checked){
that.courseid.push(item.itemid);
}else{
that.courseid.pop(item.itemid);
}
},