1. 微信小程序环境搭建
请参考官网,哈哈!
2. 微信小程序基础学习
文件结构:
3. 微信小程序实战
4. 目前的逻辑,是从微信小程序的界面和服务器的Web API 进行交互, 有个注意事项就是Web API 发布的服务器比较可以使用HTTPS 协议。否则微信后台配置不成功
在小程序管理员界面注册域名:
每个月只能修改5次,所有还是慎重的好。
-- 有个部分是和Web API 进行交互,但是不好调试,所有我也只能使用网上提供的POST 和GET 调试工具,先测试好API 再发布。
调试工具使用POSTman, 把POST 的数据用Json的格式放在Body中进行传递。
Web API 接收处理的办法对应的就是如下:
简单交互就结束了。