uni点击给元素动态添加class
<view class&#61;"recharge_num" :class&#61;"{&#39;active&#39;:add_class&#61;&#61;1}" &#64;click&#61;"addClass(1)">
view><script>export default {data() {return {add_class:&#39;&#39;,}},methods: {addClass(index){this.add_class&#61;index;}}}
script>