2

我的问题只是如何在 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();
4

2 回答 2

0

It is not possible, it displays the code in the MessageDialog not the textbox

于 2012-11-23T14:34:46.540 回答
0

您可以更新您的 MessageDialog 以包含这样的文本框吗?

    var msg = new Windows.UI.Popups.MessageDialog("<div>lol<br/><input type="text"/></div>", "Updates available");
于 2012-11-21T14:33:56.570 回答