今天总算把部门多选的效果整出来 见图: 先共享核心代码: 1:js脚本 代码如下: var treeHTML = “”; var checkList = new Array(); /*only init here*/ var barString = “└”;/*┝└*/ var degreeString = “ ”; function makeTree(id,text,value,parentid,isCheck) { this.id = id; this.text = text; this.value = value; this.parentid = parentid; this.isCh