<ul id="app">
<template v-for="site in sites">
<li>{{ site.name }}</li>
<li>--------------</li>
</template>
</ul>
<script>
var v=new Vue({
el: '#app',
data: {
sites: [
{ name: 'Runoob' },
{ name: 'Google' },
{ name: 'Taobao' }
]
}
}) v.sites.push({name: 'Taobaosss' });
v.sites.push({name: 'Taobaosss' });
v.sites.push({name: 'Taobaosss' });
v.sites.push({name: 'Taobaosss' });
v.sites.push({name: 'Taobaosss' });
v.sites.push({name: 'Taobaosss' }); </script>