ICode9

精准搜索请尝试: 精确搜索
  • uniapp app,小程序,公众号h5调用扫一扫2022-01-25 15:04:26

    (app,小程序)   uni.scanCode({ onlyFromCamera: true, //只能通过相机扫码 success: function (res) { if(res.result.indexOf("%")!=-1){ var str = res.result.substr(50); let strs= str.split("-"); that.account = strs[

  • uni版分享H52022-01-18 16:32:35

        onShow(){ this.getData(this.id) // #ifdef H5 var that = this var jweixin = require('jweixin-module') //npm安装的引用 var surl = window.location.href; // var surl = encodeURIComponent(window.location.href.split('#')[0]);

  • h5接入微信分享sdk,报错Cannot read property of undefined (reading 'title')2021-12-28 19:03:19

    直接下载jweixin-1.6.0.js文件,引入文件 import wx from './jweixin-1.6.0.js';     解决方法: 将jweixin-1.6.0.js文件中的this改为window就可以了   其他方法,参考: https://blog.csdn.net/illlllllllllll/article/details/112789644  

  • uniapp h5页面引入企业微信js-sdk2021-08-06 18:02:30

    我的项目是用vue-cli命令行创建的,里面有public/index。HTML模板文件,也可以加vue.config.js 1、引入js文件 <script src="//res.wx.qq.com/open/js/jweixin-1.2.0.js"></script> 直接将上面代码插入到index.html模板文件中 2、配置vue.config.js module.exports = { chainWe

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有