posts - 320,  comments - 29,  views - 115万
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
12 2020 档案
微信小程序设置自定义分享以及禁止分享
摘要:第一步 在app.js中 onLaunch: function (option){ this.overShare(); } 第二步:重写分享方法 overShare: function () { let _this = this //间接实现全局设置分享内容 wx.onAppRoute(functi 阅读全文
posted @ 2020-12-26 16:26 刘世涛6192 阅读(3888) 评论(0) 推荐(0) 编辑
小程序内部A页面向内嵌H5页面跳转,并且传参
摘要:小程序中A页面代码JS代码 Page({ toPtol(e){ const id=e.currentTarget.dataset['id']; const loadId=e.currentTarget.dataset['loadid']; console.log(loadId) wx.navigat 阅读全文
posted @ 2020-12-23 14:00 刘世涛6192 阅读(562) 评论(0) 推荐(0) 编辑
h5网页跳转到小程序
摘要:第一:网页引用 <script src="http://res.wx.qq.com/open/js/jweixin-1.4.0.js"></script>第二步 判断当前环境 //判断当前页面是否在小程序环境中, 注:首页是在小程序,嵌套网页,该网页才能再次跳转回小程序 wx.miniProgram 阅读全文
posted @ 2020-12-23 13:23 刘世涛6192 阅读(752) 评论(0) 推荐(0) 编辑
前端 使用 js-file-download 下载后端返回的Excel文件
摘要:问题描述:调用后端接口,接口返回文件流的形式, 第一种:window.local.href = 'xx/xx' 第二种:请求接口 接口返回一段文件流;使用 js-file-download 进行下载; js-file-download 使用方式: 安装 npm install js-file-dow 阅读全文
posted @ 2020-12-22 18:34 刘世涛6192 阅读(3642) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示