如何在js中创建警报跨平台

时间:2019-07-16 18:55:01

标签: javascript html win-universal-app cross-platform

我正在创建一个可在js中跨平台运行的游戏,我的问题是打开应用后如何在js中创建警报?

alert("The game is opened") 升 和

var dialogmessageforuser = new Windows.UI.Popups.MessageDialog("The game is opened"); 
dialogmessageforuser.showAsync();

不起作用

0 个答案:

没有答案