<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
<title>文档标题</title>
</head>
<body>
<div id="app">
<h1>
{{ message }}
</h1>
<p v-for="(name,i) in list">
网站名称:{{ name.name }} | 网址:{{ name.url }} | 网站备注:{{ name.note }} | 索引:{{ i }}
</p>
</div>
</body>
<script>
var app = new Vue({
el: '#app',
data: {
message: '网址导航',
list1:[1,2,3,4],
list:[
{ name: '1',url: '2',note: '3' },
{ name: '1',url: '2',note: '3' },
],
}
})
</script>
</html>
发表回复