5-2 哪里错了呢?
来源:5-2 在Vue中使用 animate.css 库
Lolita95
2018-12-12
<script src="https://cdn.jsdelivr.net/npm/vue@2.5.17/dist/vue.js"></script>
<link rel="stylesheet" type="text/css" href="animate.css">
hello world !
写回答
2回答
-
Lolita95
提问者
2018-12-12
没事了 又好使了 我怀疑我电脑网速有问题
00 -
Lolita95
提问者
2018-12-12
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<script src="https://cdn.jsdelivr.net/npm/vue@2.5.17/dist/vue.js"></script>
<link rel="stylesheet" type="text/css" href="animate.css">
</head>
<body>
<div id='app'>
<transition
name="fade"
enter-active-class="animated shake"
leave-active-class="animated swing"
>
<div v-if='show'>hello world !</div>
</transition>
<button @click='hand'>切换</button>
</div>
<script>
var vm=new Vue({
el:'#app',
data:{show:true},
methods:{
hand:function(){this.show=!this.show}
}
})
</script>
</body>
</html>
012018-12-12
相似问题