ui.root.clear

清除根面板。

用法返回
ui.root.clear()

无实参。

示例

代码编辑器 (JavaScript)

// Replace the default UI widgets with a few custom widgets.
ui.root.clear();
ui.root.add(ui.Label('This is a custom user interface.'));