vue template label

In ordinary html inside:

The default template has a label display:none;property, and its content is not visible inside.

In vue inside:

template tag similar to a hidden div, when reviewing the elements can not find template tag, but the contents inside are visible.

<div id="app">
    <template v-for="item in array">
        <div class="text">{{item}}</div>
    </template>
</div>

Guess you like

Origin www.cnblogs.com/lvonve/p/11322960.html