跳转到首页代码优化

if(window.parent.length>0)
window.parent.location=location;

原文地址:https://www.cnblogs.com/swite/p/5185933.html