如何判定当前页面是否被iframe引用?如下代码即可:
<script>
if(top.location != location){
alert('被iframe引用了,点击跳出嵌套'); top.location.hre[......]
如何判定当前页面是否被iframe引用?如下代码即可:
<script>
if(top.location != location){
alert('被iframe引用了,点击跳出嵌套'); top.location.hre[......]