Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/wordpress/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
&引用;单击、触摸启动、轻触、vclick“;在手机上无法使用wordpress-jQuery_Jquery_Wordpress_Click_Touchstart - Fatal编程技术网

&引用;单击、触摸启动、轻触、vclick“;在手机上无法使用wordpress-jQuery

&引用;单击、触摸启动、轻触、vclick“;在手机上无法使用wordpress-jQuery,jquery,wordpress,click,touchstart,Jquery,Wordpress,Click,Touchstart,我在Wordpress手机上的代码有问题。扩展div在计算机上工作,而不是在电话上。尝试了touchstart、vclick和tap,但在手机上仍然无法使用 $(".old").on('click', function(e) { if ($(e.target).hasClass("typowali") || $(e.target).hasClass("typ_user") || $(e.target).hasClass

我在Wordpress手机上的代码有问题。扩展div在计算机上工作,而不是在电话上。尝试了touchstart、vclick和tap,但在手机上仍然无法使用

      $(".old").on('click', function(e) {
 
 if ($(e.target).hasClass("typowali") || $(e.target).hasClass("typ_user") || $(e.target).hasClass("typ_wynik"))
    return;

if ( $( this ).hasClass( "oldclosed" ) ) {
    $(this).removeClass('oldclosed');
}
else 
    $(this).addClass('oldclosed');
});
$(".typowali").on('click', function(e) {
 
if ( $( this ).hasClass( "typopen" ) ) {
    $(this).removeClass('typopen');
}
else {
    $(this).addClass('typopen');
    $(this).closest('.mecz').find('.old').removeClass('oldclosed');
}
});