ilaipi
V2EX  ›  编程

引用微信的 jssdk 碰到的问题

  •  
  •   ilaipi · Jan 18, 2017 · 4178 views
    This topic created in 3580 days ago, the information mentioned may be changed or developed.
    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 replies  •  2017-01-19 09:38:12 +08:00
    shmilyin
    shmilyin
    Jan 18, 2017 via iPhone
    1
    你要把自己的配置贴出来才行,另外 jssdk 可以开 debug 模式
    ilaipi
    ilaipi
    OP
    Jan 19, 2017 via iPhone
    2
    是我傻逼了!竟然传错了参数!从服务端拿到配置之后响应体处理错了!
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1868 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 09:00 · PVG 17:00 · LAX 01:00 · JFK 04:00
    ♥ Do have faith in what you're doing.