TreeView默认收缩 TreeView.ExpandDepth 属性 属性值 类型:System.Int32 最初显示 TreeView 时要显示的深度。默认值为 -1,表示显示所有节点。 <asp:TreeView ExpandDepth="Int32" /> 设置0为全部收缩