怎么样判断页面是否在iframe框架里 //判断页面是否在frame里面 if (self.location!=top.location){ // alert('在frame里面'); parent.location.reload(); }