<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<meta http-equiv="X_UA-Compatible" content="ie=edge">
<title>vue 入门</title>
<!--1 导入vue.js库-->
<script src="./lib/vue.js"></script>
</head>
<body>
<div id="app">
<p v-for="(item,i) in list">下标值:----{{i}}---每一项的值-----{{item}}</p>
</div>
<script>
var vm = new Vue({
el: '#app',
data: {
list:[1,2,3,4,5]
},
methods: {
}
})
</script>
</body>
</html>