<!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="(val,key) in user">--值---{{val}}------键-{{key}}--</p>
</div>
<script>
var vm = new Vue({
el: '#app',
data: {
user:{
id:1,
name:'zhangsan',
address:'bj'
}
},
methods: {

}
})

</script>
</body>

</html>