暮尘
暮尘
  • 发布:2015-07-19 23:13
  • 更新:2015-08-03 16:44
  • 阅读:5383

如何获取tap事件和longtap点击时候的坐标

分类:MUI

RT
难道是需要动用HTML5的touchstart 事件吗?

2015-07-19 23:13 负责人:无 分享
已邀请:
尘岳two

尘岳two

body.addEventListener('tap', function(e) {  
                console.log(JSON.stringify(e));  
            });

详细的自己看

  • 暮尘 (作者)

    您好,您这段代码的log输出为:

    Uncaught TypeError: Converting circular structure to JSON at view/carCheck.html:49

    2015-07-22 22:29

  • 尘岳two

    回复 暮尘:那就不清楚了……

    2015-07-23 08:59

BoredApe

BoredApe - 有问题就会有答案。

document.addEventListener('tap',function(e){console.log("pageX:"+e.detail.touches[0].pageX+"\npageY:"+e.detail.touches[0].pageY);})

该问题目前已经被锁定, 无法添加新回复