<!DOCTYPE html>
<html>
<head>
<title>Vue Demo</title>
<script src="https://cdn.jsdelivr.net/npm/vue@2.5.16/dist/vue.js"></script>
<script src="https://cdn.jsdelivr.net/npm/axios@0.12.0/dist/axios.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/lodash@4.13.1/lodash.min.js"></script>
</head>
<body>
<div id = 'exp'>
<li v-for=" interm ,index in interms">
{{index}} ---- {{interm}}
</li>
</div>
</body>
<script>
var vu = new Vue({
el:'#exp',
data :{
interms:['a','c','d']
}
})
</script>
</html>
vue3
最新推荐文章于 2024-07-11 11:58:12 发布