地图标记bindmarkertap事件报错'always' of null

发布于 7 年前作者 zouxia9229 次浏览最后编辑 7 年前来自 ask

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 回复
xiuyinglai
xiuyinglai1 楼6 年前

OK谢谢

dfan
dfan2 楼5 年前

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