jQuery $.inArray always returns true

前端 未结 0 514
情歌与酒
情歌与酒 2021-01-28 13:36

I have this code here:

if ($.inArray(o, $(this).attr("id")) == -1) {

        o.push($(this).attr("id"));
        $(this).addClass("selec         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题