<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
</head>
<body>
<div id='app'>
<ul>
<li v-for="item in movies">{{item}}</li>
</ul>
</div>
<script src='../js/vue.js'></script>
<script>
const app = new Vue({
el:'#app',
data:{
message:'你好',
movies:['海贼王','星际穿越','大话西游','盗梦空间']
}
})
</script>
</body>
</html>
Mustache语法--Vue学习第一天
于 2022-10-12 21:24:03 首次发布