FastClick 导致聚焦有问题

 解决方法:

var x = target;
        var result = []
        while (x.tagName != 'BODY') {
            console.info(x.className, x.className.indexOf("needsClick"))
            if(x.className.indexOf("needsClick")>0) {
                result.push(x);
            }
          x = x.parentNode;
        }
        if(result.length>0)
            return true;

 

 

posted @ 2018-08-25 17:29  逆光飞翔23  阅读(300)  评论(0编辑  收藏  举报