微信小程序
--- ---
这个作者很懒,什么都没留下…
展开
-
js找出数组的差异
function ArryDiff(a,b){ return [...a.filter(x => !b.includes(x)),...b.filter(x => !a.includes(x))]}const a = [1,2,3,4]const b = [1,2,3,4,5,6,7,1]ArryDiff(a,b) //[5, 6, 7]原创 2021-09-06 14:41:28 · 228 阅读 · 0 评论 -
微信小程序日历(可单选或复选时间)
html部分<view class="calendar custom-class"> <view class="month"> <picker bindchange="bindPickerChange" value="{{showYear+'-'+showMonth}}" fields='month' mode="date" end="{{currentTime}}"> <text class="title">{{showYe...原创 2021-01-13 11:57:22 · 795 阅读 · 1 评论 -
微信小程序网络请求封装
封装,utils/http.js文件 export default function ajax(type, url, data) { return new Promise((resolve, reject) => { wx.request({ url: url, method: type, header: { 'content-type': 'application/json' },原创 2020-07-03 17:11:35 · 205 阅读 · 0 评论