获取所有的同类名标签,并给指定标签设置类名

    技术2023-12-02  107

    //看回放变红 var bottomRight = $('.bottom-right'); for (i = 0; i < bottomRight.length; i++) { if (bottomRight[i].innerHTML == '看回放') { bottomRight[i].className = 'bottom-right bottom-right-active' } }
    Processed: 0.016, SQL: 9