共用方式為


ContentDialog.secondaryCommandText property

Gets or sets the text of the dialog's secondary command.

Syntax

<div 
  data-win-control="WinJS.UI.ContentDialog" 
  data-win-options="{ secondaryCommandText : value}">
</div>
var secondaryCommandText = contentDialog.secondaryCommandText;
contentDialog.secondaryCommandText = secondaryCommandText;

Property value

Type: String**

The text of the secondary command.

Requirements

Minimum WinJS version

WinJS 4.0

Namespace

WinJS.UI

See also

ContentDialog