微信小程序(note5:页面的生命周期&页面提示框&导航栏&引用&模板&云开发)

tech2022-09-20  61

页面的生命周期


微信小程序 [小程序框架]-[逻辑层]-[页面生命周期]:https://developers.weixin.qq.com/miniprogram/dev/framework/app-service/page-life-cycle.html

微信小程序 [框架]-[框架接口]-[页面]-[Page]:https://developers.weixin.qq.com/miniprogram/dev/reference/api/Page.html

页面提示框


微信小程序 [API]-[界面]-[交互]:https://developers.weixin.qq.com/miniprogram/dev/api/ui/interaction/wx.showLoading.html

导航栏


微信小程序 [API]-[界面]-[导航栏]:https://developers.weixin.qq.com/miniprogram/dev/api/ui/navigation-bar/wx.showNavigationBarLoading.html

引用


微信小程序 [框架]-[WXML 语法参考]-[引入]:https://developers.weixin.qq.com/miniprogram/dev/reference/wxml/import.html

import :只引模板

include :除了模板、wxs,都能引

两种引用的区别:

模板


微信小程序 [框架]-[WXML 语法参考]-[模板]:https://developers.weixin.qq.com/miniprogram/dev/reference/wxml/template.html

template默认情况下不会被调用,只有当使用is时才被调用。

不过template是早期的用法。现在基本上都用组件的写法代替了。

云开发


微信小程序官方文档 [云开发]:https://developers.weixin.qq.com/miniprogram/dev/wxcloud/basis/getting-started.html

可以使用云存储,比如使用图片:直接上传图到云上,然后直接使用提供的地址。

还有数据库。

最新回复(0)