关于iframe的相关操作

1、判断当前页面是否在iframe当中

  if (top.location != self.location) {
                alert("in iframe")
            }

 

posted on 2017-07-29 16:29  漫思  阅读(136)  评论(0)    收藏  举报

导航