共用方式為


Command.label property

Gets or sets the Command label.

Syntax

<div 
  data-win-control="WinJS.UI.Command" 
  data-win-options="{ label : value}">
</div>
var label = command.label;
command.label = label;

Property value

Type: String**

The label associated with the Command.

Requirements

Minimum WinJS version

WinJS 4.0

Namespace

WinJS.UI

See also

Command