【微信小程序】小程序系統API

小程序系統API

網絡請求:wx.request()

https://developers.weixin.qq.com/miniprogram/dev/api/network/request/wx.request.htmlhtml

 

彈窗:

https://developers.weixin.qq.com/miniprogram/dev/api/ui/interaction/wx.showToast.html小程序

wx.showToast(Object object)  顯示消息提示框

wx.hideToast(Object object)  隱藏消息提示框

wx.showModal(Object object)  顯示模態對話框

wx.showLoading(Object object)  顯示 loading 提示框。需主動調用 wx.hideLoading 才能關閉提示框

wx.hideLoading(Object object)  隱藏 loading 提示框

wx.showActionSheet(Object object)  顯示操做菜單

 小程序中使用分享

不僅是屏幕右上角能夠分享,屏幕中任意位置均可以分享

要在標籤中添加屬性 open-type = 'share'

 

Navigator頁面跳轉

https://developers.weixin.qq.com/miniprogram/dev/component/navigator.htmlapi

 

相關文章
相關標籤/搜索