使用window.location对象返回协议。该窗口。升ocation.protoco L将返回网络协议,即无论是HTTP 或HTTPS -
<!DOCTYPE html> <html> <body> <script> document.write("https or https: <br>The protocol is:"+window.location.protocol); </script> </body> </html>
友情链接: json在线解析 通晓查询 糯晒黄历 姓名打分