高兴河马

文章
1
资源
0
加入时间
3年2月3天

防止网页嵌入

try{   top.location.hostname; //表明不存在跨域(或者未使用框架),就不采取操作   if (top.location.hostname != window.location.hostname) { //兼容Chrome浏览器     top.location.href =window.location.href;   ...