I want to convert
{
...
{
name: "Product 1",
category: "Category 1"
},
{
name: "Product 2",
category: "Category 2"
},
...
}
to
'Product 1 (Category 1)\r\nProduct 2 (Category 2)\r\n ... '
So my final render looks like:
Product 1 (Category 1)
Product 2 (Category 2)
Can anyone help me with this?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.