Skip to content

Commit c95db6b

Browse files
committed
modify by dk
1 parent c61b3a0 commit c95db6b

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

README.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,4 +112,20 @@ var vm = new Vue({
112112
}
113113
})
114114
```
115-
[插值效果](https://dk-lan.github.io/vue-erp/dist/demo/%E6%A8%A1%E7%89%88%E8%AF%AD%E6%B3%95/%E6%8F%92%E5%80%BC-%E6%96%87%E6%9C%AC.html)
115+
[插值效果](https://dk-lan.github.io/vue-erp/dist/demo/%E6%A8%A1%E7%89%88%E8%AF%AD%E6%B3%95/%E6%8F%92%E5%80%BC-%E6%96%87%E6%9C%AC.html)
116+
117+
## 缩写
118+
### v-bind 缩写
119+
``` html
120+
<!--完整写法-->
121+
<img v-bind:src="'../imgs/red.jpg'" alt="" />
122+
<!--缩写-->
123+
<img :src="src" alt="" />
124+
```
125+
### v-on 缩写
126+
``` html
127+
<!--完整语法-->
128+
<button v-on:click="greet">Greet</button>
129+
<!--缩写语法-->
130+
<button @click="greet">Greet</button>
131+
```

0 commit comments

Comments
 (0)