Script http跳https
<script> let url = window.location.href; if (url.indexOf('https') < 0) { url = url.replace('http:', 'https:'); window.location.replace(url); } </script>
本地开发的时候请注释掉以上代码
作者:Alone°李道长ご
联系:WeChat(QQ):1969170027
-------------------------------------------------
如果觉得这篇文章对你有小小的帮助的话,点点左下角“👍”博主在此感谢!