alert(parent.window.location.pathname); /xxxx alert(parent.window.location.search); 获得参数 ?xxx=xxx alert(parent.window.location.href); http://xxzz/ 如果不是用frame,直接去掉parent就可以 相关文章: