Google Closure:如何呈现2个组件

时间:2013-12-26 10:38:27

标签: user-interface components google-closure

我有2个goog.ui.component说component1和component2我必须渲染它们。

var bottom_content = goog.dom.getElement('diag_details');
component1.render(bottom_content);
component2.render(bottom_content);

上面的代码给出错误“已经渲染的组件”。

有没有办法渲染多个goog.ui.component。

1 个答案:

答案 0 :(得分:0)

错误消息表示组件已经直接或间接呈现(它是已呈现的另一个元素的子元素)。

相关问题