
一个题库微信小程序示例
一个题库微信小程序示例
视频教程
一、申请微信小程序账号
1.前往微信公众平台
https://mp.weixin.qq.com/
2.将鼠标停放在 小程序 上,依次点击 查看详情 前往注册
3.在注册页面填写相关信息注册完成注册
4.GIF动图教程
二、安装微信开发者工具
以Windows10专业版64位系统为例
查看Windows系统位数
1.打开以下网址,下载 微信开发者工具
https://developers.weixin.qq.com/miniprogram/dev/devtools/download.html
2.安装 微信开发者工具
三、编写程序
1.打开 微信开发者工具
2.AppID 获取方法
https://mp.weixin.qq.com/
登录账号
3.删除自动生成的多余代码
4.新建目录和Page
5.核心知识点
(1)按钮
https://developers.weixin.qq.com/miniprogram/dev/component/button.html
(2)显示文本
(3)输入框
https://developers.weixin.qq.com/miniprogram/dev/component/input.html
(4)显示消息提示框
https://developers.weixin.qq.com/miniprogram/dev/api/wx.showToast.html
(5)显示模态对话框
https://developers.weixin.qq.com/miniprogram/dev/api/wx.showModal.html
(6)底部菜单栏
https://developers.weixin.qq.com/miniprogram/dev/framework/config.html
(7)定时器
https://developers.weixin.qq.com/miniprogram/dev/api/setInterval.html
(8)保存图片到相册
https://developers.weixin.qq.com/miniprogram/dev/api/wx.getImageInfo.html
(9)渲染数据
(10)调用当前页面函数
(11)异步存储
https://developers.weixin.qq.com/miniprogram/dev/api/wx.setStorage.html
(12)异步取出缓存
https://developers.weixin.qq.com/miniprogram/dev/api/wx.getStorage.html
(13)删除指定缓存
https://developers.weixin.qq.com/miniprogram/dev/api/wx.removeStorage.html
(14)删除所有缓存
https://developers.weixin.qq.com/miniprogram/dev/api/wx.clearStorage.html
(15)查看占用缓存大小
https://developers.weixin.qq.com/miniprogram/dev/api/wx.getStorageInfo.html
(16)腾讯视频插件
https://mp.weixin.qq.com/wxopen/plugindevdoc?appid=wxa75efa648b60994b&token=867471654&lang=zh_CN
End


