没有默认方法,例如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 for Mobile App中取消硬件Backbutton事件?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/31207748/