ui.Label(value, style, targetUrl)
A text label.
Arguments:
value (String, optional):
The text to display. Defaults to an empty string.
style (Object, optional):
An object of allowed CSS styles with their values to be set for this widget. See style() documentation.
targetUrl (String, optional):
The url to link to. Defaults to an empty string.
Returns: ui.Label
代码:
var label = ui.Label({
//value是hello world 也就是标签的内容