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

页面的生命周期


微信小程序 [小程序框架]-[逻辑层]-[页面生命周期]: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

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

还有数据库。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值