bootstrap-treeview 加载默认选择第一个节点
configAppTree: function (oArrayData){ $('#appTree').treeview({ color: "#545454", expandIcon: 'glyphicon glyphicon-chevron-right', collapseIcon: 'glyphicon glyphicon-chevron-down', nodeIcon: 'glyphicon glyphicon-bookmark', data: oArrayData, onNodeSelected: function (event, data) { oGrid.setAppGridData(data); oGrid.getTreeSelections = data; } }); if (oArrayData !=undefined && oArrayData.length > 0) { var nodeId = 0; $('#appTree').treeview('selectNode', [nodeId, { silent: true }]); oGrid.setAppGridData(oArrayData[0]); oGrid.getTreeSelections = oArrayData[0]; } },