location.protocol -- 返回URL中的协议部分。例如 http://www.dreamdu.com:8080/xhtml/ 返回(//)前面的内容http:
- protocol,中文"网络中数据交换而建立的规则、标准"
- 引用网址:http://www.dreamdu.com/javascript/location.protocol/