今天学到了一招

 :style="'background-position:'+(-index*250-19)+'px 0'"

这个东西竟然有优先级 我用各种number转换都给我出来25019 后台老哥教我一招乾坤大挪移

舒服

:style="{backgroundImage:'url(' + imgurl + ')'}"

:class="'icon'+index"

:class="{checked:itemIndex === index}"

拿去生活

vue bind

相关文章:

  • 2022-12-23
  • 2021-05-14
  • 2021-11-10
  • 2021-06-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-09-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案