作者:galsu99 | 来源:互联网 | 2023-09-08 09:02
![](https://img.php1.cn/3cd4a/1eebe/cd5/433ea70d6ea577b1.jpeg?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3UwMTAyNjE5MjQ=,size_16,color_FFFFFF,t_70)
前端代码
{
{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);
}
},