Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个树面板,它在文本字段中击键后加载数据。如果我将根节点设置为隐藏,当树加载时它会从文本字段中窃取焦点。如果我不隐藏根音,它就完美了……
有任何想法吗?
据我所知,您需要编写代码以在文本字段的更改事件中显示树面板。然后,如果您更改文本字段中的键,它将永远不会失去焦点,您将通过每次键更改获得结果。