实用代码 前端小技巧 前端小技巧 ##判断是否子iframe // 判断是否子iframe if(top.location!=self.location){ } ##判断是否子iframe // 判断是否子iframe if(top.location!=self.location){ }