Commit 68f5dfd7 by LinChengbiao

readme...

parent 06f94989
......@@ -19,10 +19,8 @@
* **新增页面**
* `src/pages/temp.wpy` 文件为页面模板文件,新建页面直接复制这个然后修改就可以了。(一般情况下,改成如下形式就可以自由添加内容了)
```html
// 假如文件名是 test.wpy 则改成如下形式
```html
<!-- 假如文件名是 test.wpy 则改成如下形式 -->
<template>
<view class="testWpy">
test
......@@ -42,8 +40,7 @@
<style lang="less" scoped>
.testWpy{}
</style>
```
```
* 新增的页面必须在 `src/app.wpy` 中配置路径,否则会报错。
* 需要注意 `页面``组件` 的声明方式有所不同:
* 页面声明 `export default class PageName extends wepy.page`
......@@ -55,5 +52,6 @@
## 参考文档
* [wepy 官网](https://tencent.github.io/wepy/)
* [github 项目](https://github.com/Tencent/wepy)
* [微信小程序组件化开发框架WePY官方文档](https://tencent.github.io/wepy/document.html#/)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment