问题
I used Google Login API in form. After logged in user, I used window.location.href to redirect user to another page, but it is not working in iPad and iPhone.
window.location.href = "http://example.com/test";
回答1:
remove href as shown below
window.location = "http://example.com/test";
来源:https://stackoverflow.com/questions/26439843/window-location-href-doesnt-work-in-ipad-and-iphone