今天学到了一招
:style="'background-position:'+(-index*250-19)+'px 0'"
这个东西竟然有优先级 我用各种number转换都给我出来25019 后台老哥教我一招乾坤大挪移
舒服
:style="{backgroundImage:'url(' + imgurl + ')'}"
:class="'icon'+index"
:class="{checked:itemIndex === index}"
拿去生活
今天学到了一招
:style="'background-position:'+(-index*250-19)+'px 0'"
这个东西竟然有优先级 我用各种number转换都给我出来25019 后台老哥教我一招乾坤大挪移
舒服
:style="{backgroundImage:'url(' + imgurl + ')'}"
:class="'icon'+index"
:class="{checked:itemIndex === index}"
拿去生活
相关文章: