原因分析如下:
1:
If you set the <code>dataProvider</code> property and then immediately call
the <code>expandChildrenOf()</code> method, you may not see the correct behavior. You should either wait for the component to validate, or call the <code>validateNow()</code> method before calling <code>expandChildrenOf()</code>.</p>
2:调用 expandItem 展开 子条目 ,判断 父条目是否已经展开。