我正在使用WinJS创建一个Universial Windows 10应用程序。但是,当我调用函数window.open时,我的应用程序总是崩溃。这是代码:
ref = window.open(authorizationUri,'_ blank','location = yes')
if (!ref) {
deferred.reject(new Microsoft.Utility.Exception('The logon dialog was blocked by popup blocker'));
} else {
ref.addEventListener('loadstart', onRedirect);
if (window["tinyHippos"]) {
window["__rippleFireEvent"] = onRedirect;
}
}
任何人都可以帮助我吗?非常感谢!!!