vue 因为使用scope后选择器和标签出现[data-v

使用scope的以后出现datd-v,例如:

<div data-v-2311c06a class="button-warp">
    <button data-v-2311c06a class="button">text</button>
</div>
.button-warp[data-v-2311c06a]{
    display:inline-block;
}
.button[data-v-2311c06a]{
    padding: 5px 10px;
    font-size: 12px;
    border-radus: 2px;
}

去掉scope的之后data-v就会消失

猜你喜欢

转载自www.cnblogs.com/ToBeBest/p/9621580.html
今日推荐