移动端点击事件怎么实现?以下代码pc端可以实现,移动端不能用
<script type="text/javascript" src="js/jquery-1.6.js"></script>
<script>
$(".label li").click(function () {
if(! $(this).hasClass(".showed")){
$(".showed").removeClass("showed");
$(this).addClass("showed");
$(".label>div").eq($(this).index()).addClass("showed");
}
})
</script>
qq_43723715
2020/10/28 11:36- chrome
- html5
- ipad
- jquery
- 点赞
- 收藏
- 回答