selectcomponent 返回null
[代码]onLoad: function(){[代码][代码] [代码][代码]this[代码][代码].barComponent = [代码][代码]this[代码][代码].selectComponent([代码][代码]'#barDom'[代码][代码]);[代码][代码] [代码][代码]console.log([代码][代码]this[代码][代码].selectComponent([代码][代码]'#barDom'[代码][代码]))[代码][代码] [代码][代码]this[代码][代码].lineComponent = [代码][代码]this[代码][代码].selectComponent([代码][代码]'#lineDom'[代码][代码]);[代码][代码] [代码][代码]this[代码][代码].pieComponent = [代码][代码]this[代码][代码].selectComponent([代码][代码]'#pieDom'[代码][代码]);[代码][代码]},[代码] [代码][代码] <ec-canvas id="lineDom" canvas-id="line" ec="{{ecLine}}"></ec-canvas> <ec-canvas id="barDom" canvas-id="bar" ec="{{ecBar}}"></ec-canvas> <ec-canvas id="pieDom" canvas-id="pie" ec="{{ecPie}}"></ec-canvas> 早上还可以取到barComponent 下午的时候就报null [图片]