禁止页面被iframe包含 老方法,屡试不爽。 if (top.location !== self.location) { top.location.href = location.href; }if (top.location !== self.location) { top.location.href = location.href; }