首页 > css的问题

css的问题

<div class="details" ontouchstart="$(this).addClass('on')" ng-touchend="点击事件" ontouchmove="$(this).removeClass('on')"></div>

以上这个div当点击的时候class属性值后面加上“on”,离开点击后移除on.现在的状况是on加上了,但是没有移除。该怎么解决呀。


当按下手指时,触发ontouchstart;
当移动手指时,触发ontouchmove;
当移走手指时,触发ontouchend。

你是想移动手指的时候remove还是移走手指的时候remove?


求问“ng-touchend”是神马意思啊

【热门文章】
【热门文章】