东边是麦田
箭头函数内可以使用this 。箭头函数中的this代表的是箭头函数的父函数的作用域。
箭头函数不定义this,可以使用this
慕无忌5184659
axios,一般在实际项目中用的是结合业务封装过的axios
暮色蓝琳儿
/public 去掉
一根草_
fetch1问题根本解决不了
慕工程9098966
不错,加油
qq_changing_8
[{
"id":1,
"shop":"院落创意菜",
"picture":"",
"product":"百香果(冷饮)1扎",
"price":19.9,
"ifCommented":false
},{
"id":2,
"shop":"正一味",
"picture":"",
"product":"肥牛石锅拌饭+鸡蛋羹一份",
"price":25,
"ifCommented":false
},{
"id":3,
"shop":"冻酸奶",
"picture":"",
"product":"冻酸奶(小杯)一杯",
"price":8,
"ifCommented":true
},{
"id":4,
"shop":"吉野家",
"picture":"",
"product":"鸡汁烧鱼+中杯汽水/紫菜蛋花汤",
"price":20,
"ifCommented":true
}]