i++){ let matchTime = Date.parse($(matchLink[i]).find("time").data("time")); if(now.getTime() > matchTime){ $(matchLink[i]).find(".state").removeClass("blue_left").addClass("red_left").html("直播中"); } } } });