大学生毕业设计(论文)管理系统 校内互检 只能点左边高亮右边重复

document.querySelectorAll("span.right_txt_blue").forEach(element => {
    let str = element.getAttribute("name")
    // let no = str[str.length-1]
    let no = str.replace("rightblock","");
    element.setAttribute("onclick","ShowSameBlock('"+ no +"')")
});
上面的代码可以让点右边,高亮左边对应的重复
 
跳转位置应该是href=# 对应name锚点,有空再弄
posted @ 2023-05-30 16:33  hrdom  阅读(39)  评论(0编辑  收藏  举报