Skip to content

Commit f5ff230

Browse files
committed
chapter-3, chapter-4 review1
1 parent a1b5ec6 commit f5ff230

File tree

2 files changed

+150
-157
lines changed

2 files changed

+150
-157
lines changed

chapter-3/Components – Understanding and.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ Vue.component('hello-component', {
178178
</div>
179179
```
180180

181-
如果你在浏览器中打开页面, 你只能看到 **Hello** *user* 数据属性未被绑定到组件中:
181+
如果你在浏览器中打开页面, 你只能看到 **Hello***user* 数据属性未被绑定到组件中:
182182

183183
![](imgs/3-2.png)
184184

@@ -287,7 +287,7 @@ Vue.component('greetings-component', {
287287
});
288288
```
289289

290-
在我们的主要方程式中, 调用 greetings 组件:
290+
在我们的中枢方程式中, 调用 greetings 组件:
291291

292292
```html
293293
<div id="app">
@@ -839,7 +839,7 @@ export default {
839839
### Tip
840840
我们将使用 Bootstrap 的 CSS 样式。 在全局 *index.html* 内引入文件:
841841

842-
```
842+
```html
843843
<link rel="stylesheet" href=" https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
844844
```
845845

@@ -956,7 +956,7 @@ export default {
956956

957957
回到 *ItemComponent* 组件增加 *props* 属性:
958958

959-
```
959+
```html
960960
//ItemComponent.vue
961961
<script>
962962
export default {
@@ -1104,7 +1104,7 @@ new Vue({
11041104

11051105
想象你有一个元素只有在 *show* 特性为真值的时候才显现。 这很简单, 对吗? 用你已经知道的 *v-if* 指令:
11061106

1107-
```
1107+
```html
11081108
<div v-if="show">hello</div>
11091109
```
11101110

0 commit comments

Comments
 (0)