在登陆界面加 $(document).ready(function(){ if(window.top!=window.self) window.top.location.href=location.href; })