首页
极刻
圈子
教程
开源
登录 / 注册
返回教程:Javascript 教程
TRY RUN / 在线示例
Javascript 教程 返回当前URL的协议部分
Javascript 教程 返回当前URL的协议部分
源代码
运行
<!DOCTYPE html> <html> <body> <script> document.write(location.protocol); </script> </body> </html>
运行结果