我有下面的功能,在所有浏览器上都可以正常工作。但是,该功能(本质上用于注销用户)在 iPad(v3) 上不起作用。请注意,这是一个网络应用程序。
我最初的想法是它window.location
,我听说它在 iPad 上运行不佳。但我试过了location.href
,window.location.href
也无济于事。
没有控制台错误或奇怪的行为。
有人遇到过类似的问题吗?
$(document).on('touchstart click', '.sb-sign-out', function (e) {
e.stopPropagation(); e.preventDefault();
$.post('@Url.Action("clientLogout", "master")', {}, function () {
window.location = "@Url.Action("campaigns", "master")";
});
});
这是DIV:
<div class="sb-sign-out button round">LOGOUT</div>