随笔分类 - 微信小程序
摘要:如何通过unionId获取openId,或者获取所有关注公众号用户的unionId? ..2021-09-273383浏览问题模块: 开放讨论问题 我用了官方提供的 https://developers.weixin.qq.com/doc/offiaccount/User_Management/Ge
阅读全文
摘要:主要是使用到formdata方式,但微信小程序并不支持,使用此插件 https://github.com/zlyboy/wx-formdata 两个js下载地址,下载 下面代码是先压缩再上传,同时也适用改造一次性多文件上传 const FormData = require('../../../lib
阅读全文
摘要:.table { border: 0px solid darkgray; } .tr { display: flex; width: 100%; justify-content: center; height: 3rem; align-items: center; } .td { width:40%
阅读全文
摘要:crc16(data) { let crcValue = 0xFFFF; for (let i = 0; i < data.length; i++) { crcValue ^= data[i] & 0xFFFF for (let j = 0; j < 8; j++) { if (crcValue &
阅读全文
摘要:downFile(e) { const that = this; const { eindex, ext } = $data(e) const apiUrl = this.$getApiUrl(); var url = apiUrl + "/WebApi/ShareFile/Download/" +
阅读全文
摘要:<picker mode="multiSelector" range="{{ edit_cateArray_temp }}" range-key="name" value="{{ edit_cateSelectIndex }}" bindchange="changeCate" bindcolumnc
阅读全文
摘要:Android, iOS, Windows, Web 微信小程序测试工具 http://airtest.netease.com/docs/docs_AirtestIDE-zh_CN/1_quick_start.html
阅读全文
摘要:转自:https://www.cnblogs.com/likun123/p/9543376.html 小程序解析html标签,就需要用到wxParse啦.但是在解析连续图片的时候,会发现图片之间会有间隔,这是因为微信小程序本身的img标签自带间隔 解决:在wxss中设置 .wxParse-img{
阅读全文
摘要:转自https://segmentfault.com/q/1010000012507519 wxml写入 <view bindtap='uploadImg'>上传</view> <image bindtap='uploadImg' data-number="0" src="{{ uploadPic[
阅读全文
摘要://创建节点选择器 var query = wx.createSelectorQuery(); //选择id query.select('#mjltest').boundingClientRect() query.exec(function (res) { //res就是 所有标签为mjltest的
阅读全文
摘要:转自https://www.cnblogs.com/panlaixing/p/6557940.html
阅读全文
摘要:<!--滚动图片--> <view class='swiper'> <swiper current="{{img.current}}" indicator-dots="true" indicator-color="#fff" indicator-active-color="#f23030" vert
阅读全文