地图标记bindmarkertap事件报错'always' of null
发布于 6 年前 作者 zouxia 9121 次浏览 来自 问答

VM1032:2 TypeError: Cannot read property ‘always’ of null

    at p (1141635563.debug.open.weixin.qq.com/pages/map/map.html:29)

    at k.<anonymous> (1141635563.debug.open.weixin.qq.com/pages/map/map.html:29)

    at open.map.qq.com/apifiles/2/4/71/main.js:1

    at Y (open.map.qq.com/apifiles/2/4/71/main.js:1)

    at Object.Q.trigger (open.map.qq.com/apifiles/2/4/71/main.js:1)

    at k.ya.triggerCustomEvent (open.map.qq.com/apifiles/2/4/71/main.js:1)

    at k.C.triggerMouseEvent (eval at <anonymous> (eval at <anonymous> (eval at <anonymous> (open.map.qq.com/apifiles/2/4/71/main.js:1))), <anonymous>:1:25176)

    at k.C.doEvent (eval at <anonymous> (eval at <anonymous> (eval at <anonymous> (open.map.qq.com/apifiles/2/4/71/main.js:1))), <anonymous>:1:24251)

    at k.eval (eval at <anonymous> (eval at <anonymous> (eval at <anonymous> (open.map.qq.com/apifiles/2/4/71/main.js:1))), <anonymous>:1:12677)

    at open.map.qq.com/apifiles/2/4/71/main.js:1

调用函数:

  markertap(e) {

  //  console.log(e.markerId)

  }

如何解决?

2 回复

在手机预览中却正常,没有出错.

回到顶部