微信小程序 知識點

資料 網址
下載微信小程序開發工具 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 中相同的配置項。微信小程序

相關文章
相關標籤/搜索