摘要: /* * JavaScript MD5 * https://github.com/blueimp/JavaScript-MD5 * * Copyright 2011, Sebastian Tschan * https://blueimp.net * * Licensed under the MIT 阅读全文
posted @ 2020-07-15 15:32 ZeroShiro 阅读(308) 评论(0) 推荐(0)
摘要: 参考 H5支付文档 https://pay.weixin.qq.com/wiki/doc/api/H5.php?chapter=9_20&index=1 1.发送请求所需要的参数 /* 微信后台 设置的key 怎么拿到key https://jingyan.baidu.com/article/c14 阅读全文
posted @ 2020-07-15 15:22 ZeroShiro 阅读(937) 评论(0) 推荐(0)
摘要: 详情预览 ➡️https://ext.dcloud.net.cn/plugin?id=2312 阅读全文
posted @ 2020-07-15 11:49 ZeroShiro 阅读(585) 评论(0) 推荐(0)
摘要: /* 多次点击 只执行最后一次 */ const debounce = (function () { let timer = null; return function (func, delay = 1000) { if (timer) { clearTimeout(timer); } timer 阅读全文
posted @ 2020-07-01 10:17 ZeroShiro 阅读(231) 评论(0) 推荐(0)
摘要: // 默认 一天过期 function storeTime(KeyName, startTime = 86400000) { const old = wx.getStorageSync(KeyName); const current = Date.now(); if (old && current 阅读全文
posted @ 2020-05-18 15:42 ZeroShiro 阅读(530) 评论(0) 推荐(0)
摘要: 通过 input file 上传(有大小限制 5mb左右) 用到了 flyio 发送请求(仅供参考) 阅读全文
posted @ 2020-05-14 16:55 ZeroShiro 阅读(747) 评论(0) 推荐(0)
摘要: 1.激励视频广告支持版本 抖音安卓 10.3 及以上,抖音 iOS10.7 及以上 ,需要通过 tt.getSystemInfoSync() 判断版本号 。 // 抖音版本 验证 function validVer() { let sys = tt.getSystemInfoSync(); cons 阅读全文
posted @ 2020-05-12 10:05 ZeroShiro 阅读(6914) 评论(1) 推荐(0)