微信小程序 学习资料

学习资料 网址
下载微信小程序开发工具 https://developers.weixin.qq.com/miniprogram/dev/devtools/download.html
注册 https://mp.weixin.qq.com/wxopen/waregister?action=step1
管理后台 https://mp.weixin.qq.com/wxamp/home/guide?token=1935543104
开发文档 https://developers.weixin.qq.com/miniprogram/dev/framework/
使用模板创建小程序代码(后端服务 选择:小程序·云开发) https://developers.weixin.qq.com/miniprogram/dev/framework/quickstart/getstart.html#你的第一个小程序
开通云开发、创建环境 https://developers.weixin.qq.com/miniprogram/dev/wxcloud/basis/quickstart.html#_2-开通云开发、创建环境
云开发,说明 https://developers.weixin.qq.com/miniprogram/dev/wxcloud/basis/quickstart.html
sitemap.json 配置 https://developers.weixin.qq.com/miniprogram/dev/framework/sitemap.html
button 组件的属性:open-type 的合法值 https://developers.weixin.qq.com/miniprogram/dev/component/button.html
事件分类 https://developers.weixin.qq.com/miniprogram/dev/framework/view/wxml/event.html
自定义事件上报 https://mp.weixin.qq.com/wxopen/userdefineanalysis?action=event_list&token=1348013457

注册小程序:App() 必须在 app.js 中调用,必须调用且只能调用一次。不然会出现无法预期的后果。

整个小程序只有一个 App 实例,是全部页面共享的。开发者可以通过 getApp 方法获取到全局唯一的 App 示例,获取App上的数据或调用开发者注册在 App 上的函数。

const app = getApp()

使用 Page 构造器注册页面
简单的页面可以使用 Page() 进行构造。

视图容器:
cover-image
cover-view
movable-area
movable-view
scroll-view
swiper
swiper-item
view

每一个小程序页面也可以使用同名 .json 文件来对本页面的窗口表现进行配置,页面中配置项会覆盖 app.json 的 window 中相同的配置项。

posted on 2019-10-16 14:06  cag2050  阅读(311)  评论(0编辑  收藏  举报

导航