<label class="js_highlight" style="display: inline-block;float: left;width: 50%;">
                            <div class="compare-top-left-check">
                                <label class="label-check"><i style="display: none;"></i></label>
                                <span style="margin-left: 20px;"> Hide different items</span>
                            </div>
                        </label>

js:  以上代码在电脑浏览器和安卓上都能触发alert事件,但是在ios上却完全没有反应 

$(document).on("click",".js_equal_hide",function(){
	var n=~~$(".JS_numshow").html().split("/")[0];

修改js代码调试: 将两层的div都加上点击事件

$(".js_equal_hide .compare-top-left-check").click(function () {
	var n=parseInt($(".JS_numshow").html().split("/")[0]);
		if(n<2)return false;
	var $this = $(this).parent();

  

相关文章:

  • 2021-12-03
  • 2022-12-23
  • 2021-10-07
  • 2021-08-06
  • 2022-01-24
  • 2022-12-23
  • 2021-08-15
  • 2022-12-23
猜你喜欢
  • 2021-11-16
  • 2022-12-23
  • 2021-06-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-26
相关资源
相似解决方案