收藏
回答

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

问题模块
API和组件

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)

  }


如何解决?

最后一次编辑于  2017-08-27  (未经腾讯允许,不得转载)
邀请回答
复制链接收藏投诉关注问题回答

2 个回答

  • ray
    ray
    2017-08-27

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

    2017-08-27
    赞同
    回复
  • ray
    ray
    2017-08-27

    OK谢谢

    2017-08-27
    赞同
    回复