V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
ilaipi
V2EX  ›  编程

引用微信的 jssdk 碰到的问题

  •  
  •   ilaipi · 2017-01-18 16:46:34 +08:00 · 3268 次点击
    这是一个创建于 2654 天前的主题,其中的信息可能已经有所发展或是发生改变。
    index.js:74 Uncaught (in promise) TypeError: Cannot read property 'debug' of undefined
        at j (index.js:74)
        at Object.config (index.js:147)
        at service.js:14
    

    大概定位过去是这样的:

        function j(a, b) {
            if (!(!z.debug || b && b.isInnerInvoke)) {
                var c = p[a];
                c && (a = c), b && b._complete && delete b._complete, console.log('"' + a + '",', b || "")
            }
        }
    

    很奇怪怎么都找不到网上报一样错的。。有见过的吗?

    2 条回复    2017-01-19 09:38:12 +08:00
    shmilyin
        1
    shmilyin  
       2017-01-18 22:28:00 +08:00 via iPhone
    你要把自己的配置贴出来才行,另外 jssdk 可以开 debug 模式
    ilaipi
        2
    ilaipi  
    OP
       2017-01-19 09:38:12 +08:00 via iPhone
    是我傻逼了!竟然传错了参数!从服务端拿到配置之后响应体处理错了!
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1279 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 17:57 · PVG 01:57 · LAX 10:57 · JFK 13:57
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.