小程序代码示例整理

以下是分享了一部分小程序的代码示例,希望能够帮助到你们,抓紧收藏吧

微信小程序知乎日报

https://github.com/myronliu347/wechat-app-zhihudaily
在这里插入图片描述
微信小程序购物车案例

https://github.com/SeptemberMaples/wechat-weapp-demo
在这里插入图片描述
微信小程序–聊天室功能

本项目使用 Gorilla WebSocket 作为聊天室后台 , Gorilla WebSocket 基于go语言开发,提供的demo实例中有聊天室源码,不需要任何修改就能生成一个聊天室项目(包含后台+web前台)

https://github.com/ericzyh/wechat-chat

微信小程序–音乐播放器

https://github.com/eyasliu/wechat-app-music

在这里插入图片描述

小程序快速开发骨架

https://github.com/zce/weapp-boilerplate

开发阶段与生产阶段分离。

自动化生成新页面所需文件并添加到配置中。

以Standard Code Style校验全部的js和json文件。

开发阶段json配置文件可以有注释,方便备注。

代码中集成部分文档内容,减少查文档的时间。

开发阶段可以使用less完成样式编码,原因你懂得~ (如果你了解这些,当然可以支持sass等其他预处理样式)。

借助babel自动进行ES2015特性转换,放心使用新特性。

开发阶段用xml文件后缀取代wxml后缀,避免在开发工具中配置代码高亮。

Source Map

Travis CI

微信小程序版–微信

https://github.com/liujians/WeApp
在这里插入图片描述
微信小程序–地图的使用

https://github.com/giscafer/wechat-weapp-mapdemo
在这里插入图片描述
微信小程序–2048

https://github.com/natee/wxapp-2048

在这里插入图片描述
微信小程序项目集合
https://javascript.ctolib.com/javascript/categories/javascript-wechat-weapp.html
番茄时钟
https://github.com/kraaas/timer
小程序计算器
https://github.com/DengKe1994/weapp-calculator/tree/master

猜你喜欢

转载自blog.csdn.net/weixin_41819098/article/details/89403087