File tree 3 files changed +8
-11
lines changed 3 files changed +8
-11
lines changed Original file line number Diff line number Diff line change 3
3
< head >
4
4
< meta charset ="UTF-8 ">
5
5
< title > vuejs练习</ title >
6
-
6
+ < link rel =" stylesheet " type =" text/css " href =" index.css " >
7
7
</ head >
8
8
< body >
9
9
< div id ="demo ">
18
18
</ div >
19
19
< script src ='http://cdn.jsdelivr.net/vue/1.0.26/vue.min.js '> </ script >
20
20
< script src ="index.js "> </ script >
21
- < link type ="text/css " href ="index.css ">
22
21
</ body >
23
22
</ html >
Original file line number Diff line number Diff line change 3
3
< head >
4
4
< meta charset ="UTF-8 ">
5
5
< title > vuejs练习</ title >
6
-
6
+ < link rel =" stylesheet " type =" text/css " href =" index.css " >
7
7
</ head >
8
8
< body >
9
9
< div id ="repeat-object ">
10
- < div v-if ="show " transition ="bounce "> hello</ div >
11
- < button v-on:click ="testShow "> testShow</ button >
12
- </ br >
10
+ < div v-if ="show " transition ="bounce "> hello</ div > </ br >
11
+ < button v-on:click ="testShow "> 测试</ button >
13
12
</ div >
14
- < script src ='http://cdn.jsdelivr.net/vue/1.0.26 /vue.min.js '> </ script >
13
+ < script src ='.. /vue.min.js '> </ script >
15
14
< script src ="index.js "> </ script >
16
- < link type ="text/css " href ="index.css ">
17
15
</ body >
18
16
</ html >
Original file line number Diff line number Diff line change @@ -2,15 +2,15 @@ new Vue({
2
2
el :"#repeat-object" ,
3
3
data :{
4
4
show : true ,
5
- transitionName : 'bounce'
5
+ // transitionName: 'bounce'//可选
6
6
} ,
7
7
methods :{
8
8
testShow :function ( event ) {
9
- this . show = this . show ;
9
+ this . show = ! this . show ;
10
10
}
11
11
}
12
12
} )
13
-
13
+ // 这里的名字必须和css和html的名字一致才能都起作用。如果css和js中只有一个名字相同,则名字相同的那个起作用。
14
14
Vue . transition ( 'bounce' , {
15
15
16
16
beforeEnter : function ( el ) {
You can’t perform that action at this time.
0 commit comments