我的问题只是如何在 MessageDialog (文本框 ...)中输入输入。这是一个按钮的代码:
var msg = new Windows.UI.Popups.MessageDialog("<div>lol</div>", "Updates available");
enter code here
msg.commands.append(new Windows.UI.Popups.UICommand("Don't install", function (command) {
WinJS.log && WinJS.log("The 'Don't install' command has been selected.", "sample", "status");}));
msg.defaultCommandIndex = 1;
msg.showAsync();