HTTPorHTTPS相互跳转JS

/ 0评 / 0
<script type="text/javascript">var targetProtocol="https:";window.location.protocol!=targetProtocol&&(window.location.href=targetProtocol+window.location.href.substring(window.location.protocol.length))</script>

发表评论

邮箱地址不会被公开。 必填项已用*标注