V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
langren

微信调用扫码接口设置阻止跳转 为什么有的时候还是会默认跳转

  •  1
     
  •   langren · Aug 11, 2016 · 3843 views
    This topic created in 3545 days ago, the information mentioned may be changed or developed.

    V 友们有没有遇到过类似的问题?

    wx.scanQRCode({
            	needResult: 1, // 默认为 0 ,扫描结果由微信处理, 1 则直接返回扫描结果,
            	scanType: ["qrCode", "barCode"], // 可以指定扫二维码还是一维码,默认二者都有
            	success: function (res) {
            		//成功后执行的操作
            	}
           	});
    

    大概扫 20 次会出现一次不能阻止跳转的情况,通常是出现两声扫描的音效。怀疑是扫描了两次

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5367 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 01:22 · PVG 09:22 · LAX 18:22 · JFK 21:22
    ♥ Do have faith in what you're doing.