微信小程序 知识点

资料 网址
下载微信小程序开发工具 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#%E4%BD%A0%E7%9A%84%E7%AC%AC%E4%B8%80%E4%B8%AA%E5%B0%8F%E7%A8%8B%E5%BA%8F
开通云开发、建立环境 https://developers.weixin.qq.com/miniprogram/dev/wxcloud/basis/quickstart.html#_2-%E5%BC%80%E9%80%9A%E4%BA%91%E5%BC%80%E5%8F%91%E3%80%81%E5%88%9B%E5%BB%BA%E7%8E%AF%E5%A2%83
云开发,说明 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

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

整个小程序只有一个 App 实例,是所有页面共享的。开发者能够经过 getApp 方法获取到全局惟一的 App 示例,获取App上的数据或调用开发者注册在 App 上的函数。json

const app = getApp()

使用 Page 构造器注册页面
简单的页面能够使用 Page() 进行构造。小程序

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

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

相关文章
相关标签/搜索