隐藏Leetcode上带锁的题目

打开chrome的控制台

输入一下js代码,回车执行

$("tbody.reactable-data > tr > td:nth-child(3) > div > span:nth-child(2)").each(function(index, element) {
    $(element).parent().parent().parent().hide();
});

javascript:$("tbody.reactable-data > tr > td:nth-child(3) > div > span:nth-child(2)").each(function(index, element) {
    $(element).parent().parent().parent().hide();
});

原生js的写法:

document.querySelectorAll("#question-app > div > div:nth-child(2) > div.question-list-base > div.table-responsive.question-list-table > table > tbody.reactable-data > tr > td:nth-child(3) > div > span:nth-child(2)").forEach(function(e) {
    e.parentNode.parentNode.parentNode.style.display = "none"
})

你可能感兴趣的:(leetcode,windows,算法)