huans
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>tab颜色切换</title>
<script src="js/vue.min.js"></script>
</head>
<body>
<style>
.aa{
cursor: pointer;float: left;margin: 0 6px;
}
.red{
color: red;
}
</style>
<p id="APP">
<p v-for="(qiehuan,index) in qiehuans" class="aa" :class="{ red:changeRed == index}" @click="change(index)">{{qiehuan.a}}</p>
</p>
<script>
new Vue({
el:'#app',
data:{
qiehuans:[
{a:"田"},
{a:"心"},
{a:"水"},
{a:"原"}
],
changeRed:0
},
methods:{
change(index){
this.changeRed = index;
}
}
})
</script>
</body>
</html>
文章最后发布于: 2019-06-10 16:14:57
相关阅读
https://sq.163yun.com/blog/article/173552201158811648 https://sq.163yun.com/blog/article/173554725500456960 description:
假设我们在html中有这样一个table:<table id="dataTableTest1" class="table table-border table-bordered table-bg table-hover
1.html<el-dialog id="clickMe" @click="clicked"> <img :src="dialogImageUrl" width="100%"> </el-dialog> 2.jsmethods: {
转自:http://blog.chinaunix.net/uid-25785357-id-3434344.html使用crontab你可以在指定的时间执行一个shell脚本或者一系列Linux
我们在网上下载软件的时候经常会遇到不同的版本,如一些软件有绿色版,而一些用户对标注portable的版本不太清楚是什么意思,下面