87,921
社区成员
发帖
与我相关
我的任务
分享
{
"id": "5ac1eb591a6b2f48fcb06210",
"shopid": 0,
"cateid": "5ac0896ca880f20358495508",
"catename": "精选热菜",
"title": "香酥黄金鱼",
"price": "22",
"product_bar_code": "324235",
"num": "1",
"description": "这是商品描述",
"status": "1",
"is_best": "1",
"is_hot": "1",
"content": "<p>香酥黄金鱼</p>",
"img_url": "upload\\20180417\\1523969277382.jpg",
"type": "2",
"sort": "",
"tasks": [
{
"id": "1",
"content": "这个菜味道还可以",
"star": "2"
},
{
"id": "2",
"content": "一般般",
"star": "1"
}
]
}
fetch('http://localhost:3000/shopListContent/5ac1eb591a6b2f48fcb06210/tasks').then(res => {
if (res.ok) {
res.json()
.then(data => {
console.log(data);
})
}
})