没有像 event.stopPropogation() 或 PreventDefault() 这样的默认方法。 如何停止事件的默认行为(硬件后退按钮)?!
最佳答案
这是解决方案。
var app = WinJS.Application;
app.onbackclick = function (evt) {
// Code that handles event ...
// Need to return true to cancel the default behavior of this event.
return true;
}
关于windows - 如何在移动应用程序的 WinJS 中抑制硬件后退按钮事件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31207748/