在element-ui中怎么使获取到的字符串转成数组并循环展示
2020-06-12 本文已影响0人
蕾_0a33
在element-ui中怎么使获取到的json数据中的comment_tag字符串转成数组,并能够循环展示出来如下图?
![](https://img.haomeiwen.com/i14090877/9916a3a0af934245.png)
![](https://img.haomeiwen.com/i14090877/0f8f2b2c9ba45b1d.png)
![](https://img.haomeiwen.com/i14090877/558bcbafc046ba82.png)
直接在获取到的scope.row.comment_tag数据后面用split(',')进行拆分,并把comment_tag数据作为数组进行循环展示
在element-ui中怎么使获取到的json数据中的comment_tag字符串转成数组,并能够循环展示出来如下图?
直接在获取到的scope.row.comment_tag数据后面用split(',')进行拆分,并把comment_tag数据作为数组进行循环展示