摘要: 阅读全文
posted @ 2020-04-24 15:05 茗涵 阅读(780) 评论(0) 推荐(0) 编辑
摘要: 1.使用 git bash here 安装git init 和 npm i @vant/weapp -S --production,然后会多一个文件将里面的dist文件放入项目内 使用时在页面的index.json里按需加载,就能使用vant了 decodeURIComponent(url) //解 阅读全文
posted @ 2020-04-24 11:00 茗涵 阅读(136) 评论(0) 推荐(0) 编辑
摘要: //wxml <view wx:for="{{ispaltes}}" wx:for-index='key' wx:for-item='item'> <text>{{item}}</text> <view bindtap="colse" id="{{key}}"> <button>关闭</button 阅读全文
posted @ 2020-04-24 10:52 茗涵 阅读(274) 评论(0) 推荐(0) 编辑
摘要: //存储页面 onLoad: function (options){ var that=this var value=wx.getStorageSync('value') || [] //声明plates value.unshift(that.data.plate)//添加 wx.setStorag 阅读全文
posted @ 2020-04-24 10:38 茗涵 阅读(1890) 评论(0) 推荐(0) 编辑