new Vue({
el: '#app',
data: {
message: 'Hello Vue.js!1',
items: [
{ message: 'Foo' },
{ message: 'Bar' }
]
}
})
<script src="https://unpkg.com/vue"></script>
<div id="app">
<ul id="example-1">
<li v-for="item in items">
{{ item.message }}
</li>
</ul>
</div>
.con{
color:red;
}