location.protocol -- 返回URL中的协议部分。例如 http://www.dreamdu.com:8080/xhtml/ 返回(//)前面的内容http:

- protocol,中文"网络中数据交换而建立的规则、标准"
- 引用网址:http://www.dreamdu.com/javascript/location.protocol/