amis
amis copied to clipboard
each组件 与 service 配合,如何配置?
{
"type": "service",
"api": {
"url": "/xxxec/7/6?category=${category}",
"sendOn": "category"
},
"body": {
"type": "each",
"items": {
"tpl": "<span class='label label-default'>${data.ProdName}</span> ",
"type": "tpl"
},
"value": "${data.rows}"
}
}
取不到值
语法不对,没有 data.
{
"type": "each",
"name": "rows",
"items": {
"tpl": "<span class='label label-default'>${ProdName}</span> ",
"type": "tpl"
}
}