我写了这个丑陋的函数)
changeToDone = () => {
document.getElementsByClassName("plus-container")[0].style.display
= "none";
document.getElementsByClassName("done-follow")[0].style.display =
"block";
document.getElementsByClassName("plus-btn")[0].style.display =
"none";
};
关于如何重构此功能的任何建议