vue中tree樹如何添加操作三個小點?
string[] pan = System.Environment.GetLogicalDrives()
; foreach(string s in pan) { TreeNode node = new TreeNode(); node.Text = s; this.treeView1.Nodes.Add(node)
; string[] child = System.IO.Directory.GetDirectories(node.Text)
; foreach(string m in child) { TreeNode node1 = new TreeNode(); node1.Text = m.Substring(m.LastIndexOf("\\")+1); node.Nodes.Add(node1); } } this.treeView1.SelectedNode = this.treeView1.Nodes[0]
; this.textBox1.Text = this.treeView1.SelectedNode.Text; 并不完整!截取的一部份!