problem description: when the input content is the same as the SKU value in the list, the number of checks is increased by one, and when the input content does not match the sku in the table, the pop-up "check no this item information" pops up. Why sometimes the if and else parts will pop up, and sometimes it will be normal. Asking for advice using the "global variable" flag is not valid, ask for advice
/ / enter
$(".conversation _ review") .click (function () {
$("tbody tr td:nth-child(2)").each(function(index,val){
if($(this).html()==$(".nav-input").val()){
var count = $(this).parent().children().eq(-2).html();
countPP;
$(this).parent().children().eq(-2)[0].innerHTML= count;
}else{
layer.msg("",{icon:5});
}
});
});