JQuery切换功能在某些移动设备浏览器(如moto e)中不起作用

JQuery切换功能在某些移动设备浏览器(如moto e)中不起作用,jquery,html,Jquery,Html,下面的代码在windows浏览器中运行良好,但在某些移动设备(如moto-e)中不起作用。我该怎么办 Jquery $(".child-row .child-head").on("click", function () { $(this).next(".child-body").slideToggle(); $(this).closest(".child-row").siblings().find('.child-body').slideUp(); }); Html

下面的代码在windows浏览器中运行良好,但在某些移动设备(如moto-e)中不起作用。我该怎么办

Jquery

$(".child-row .child-head").on("click", function () {
       $(this).next(".child-body").slideToggle();
       $(this).closest(".child-row").siblings().find('.child-body').slideUp();
});
Html

<div class="child-row">
     <div class="child-head">
           Head Text
     </div>
     <div class="child-body">
           Body Text
     </div>
</div>

标题文本
正文
提前感谢。

所以只有某些元素定义了clicks事件,但您可以手动定义它。比如说

$(".child-row .child-head").each(function(){
    this.onclick = function() {}
});
您还可以使用触摸事件

$(".child-row .child-head").on('touchstart', function() {...

你能添加一个JSFIDLE吗?