首页 > 我的文章 > PHP开发 > javascript的代码 > https JS跳转

https JS跳转

浏览:734 编辑:绿萝 来源:绿萝
<script> if (document.location.protocol != "https:") { document.location = document.URL.repl
<script>
if (document.location.protocol != "https:") {
document.location = document.URL.replace(/^http:/i, "https:");
}
</script>