如何用js实现简单的树控件?我之前写过一个,很简单,也就下面几个函数:function topOfList(){var btn = document.getElementById('topOfListBtn')if(btn.state == 2023-03-04JavaScript170