$("#good").html(''); $("#order").html(''); $(".click").each(function(index, element) { if(($(this).attr("data-classid")=="81")&&($(this).attr("data-id")=="2")) { $(this).html("播放;40"); if(parseInt("1")>0) { $(this).parent().next().html('评论:1'); } } })