var app = new Vue({
el:'#app',
data:{
data:[
'李易峰',
'胡歌',
'彭于晏',
'勒东',
'沈腾',
'张世',
]
}
});
<div id='app'>
<h1>演员列表</h1>
<ul>
<li v-for='item in data'>{{item}}</li>
</ul>
</div>
body{
color:white;
}
#app ul>li{
font-size:16px;
font-weight:bold;
cursor:pointer;
user-select:none;
line-height:1.4;
}
#app ul>li:active{
color:black;
}