Vue中绑定class字符串拼接变量

2019-06-28  本文已影响0人  芒布芒

方式一:

:class="`字符串${item.id}`"

示例如下:

:class="`div${item.id}`"

上一篇 下一篇

猜你喜欢

热点阅读