防止JS文件被恶意引用,防盗跳转chujun2024-11-1717 次浏览 host = window.location.host; if (host != "baidu.com") { location.href = "http://www.baidu.com"; }0