![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
小程序
文章平均质量分 54
zhzwei
这个作者很懒,什么都没留下…
展开
-
小程序 storage 和浏览器 localStorage 的区别
1、小程序 storage 和浏览器 localStorage 的区别不存在的字段:小程序中 storage 中,使用 wx.getStoarege(key) 获取的是 ""浏览器中 localStorage 使用 window.localStorage.getItem(key) 获取的是 null...原创 2019-12-12 17:57:38 · 657 阅读 · 0 评论 -
微信小程序开发笔记:wx.request() 的封装
封装 wx.request// request.jsconst baseUrl = 'https://www.example.com'export default function request(options) { return new Promise((resolve, reject) => { wx.request({ url: baseUrl + o...原创 2019-12-02 21:31:57 · 187 阅读 · 0 评论 -
微信小程序开发笔记:轮播图
轮播图需要设置的样式由于小程序中 swiper 和 image 组件的默认样式,轮播图需要进行自定义设置才能正常显示:设置 swiper 的高度设置 image 的宽度和高度<swiper :indicator-dots="true" :autoplay="true" class="carousel"> <swiper-item> <image...原创 2019-12-02 15:00:41 · 275 阅读 · 0 评论