Skip to content

Commit

Permalink
Merge 1dee42c into fd749d6
Browse files Browse the repository at this point in the history
  • Loading branch information
Go7hic committed Jan 20, 2018
2 parents fd749d6 + 1dee42c commit a5dbc62
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/md/doc.md
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ export default class extends wepy.app {

入口文件`app.wpy`中所声明的小程序实例继承自`wepy.app`类,包含一个`config`属性和其它全局属性、方法、事件。其中`config`属性对应原生的`app.json`文件,build编译时会根据`config`属性自动生成`app.json`文件,如果需要修改`config`中的内容,请使用微信提供的相关API。

#### 页面page.wpy
#### 页面 page/*.wpy

```html
<script>
Expand Down Expand Up @@ -564,7 +564,7 @@ export default class Page extends wepy.page {
</style>
```

页面文件`page.wpy`中所声明的页面实例继承自`wepy.page`类,该类的主要属性介绍如下:
页面文件 `page/*.wpy` 中所声明的页面实例继承自 `wepy.page` 类,该类的主要属性介绍如下:

| 属性 | 说明 |
| ---------- | ---------------------------------------- |
Expand All @@ -575,7 +575,7 @@ export default class Page extends wepy.page {
| events     | WePY组件事件处理函数对象,存放响应组件之间通过`$broadcast``$emit``$invoke`所传递的事件的函数           |
| 其它         | 小程序页面生命周期函数,如`onLoad``onReady`等,以及其它自定义的方法与属性   |

#### 组件com.wpy
#### 组件 components/*.wpy

```html
<template lang="wxml">
Expand All @@ -600,7 +600,7 @@ export default class Com extends wepy.component {
</style>
```

组件文件`com.wpy`中所声明的组件实例继承自`wepy.component`类,除了不需要`config`配置以及页面特有的一些生命周期函数之外,其属性与页面属性大致相同。
组件文件 `components/*.wpy` 中所声明的组件实例继承自 `wepy.component` 类,除了不需要`config`配置以及页面特有的一些生命周期函数之外,其属性与页面属性大致相同。

### 实例

Expand Down

0 comments on commit a5dbc62

Please sign in to comment.