a标签里href=//xxx.xxx.com这样不带协议头的写法有什么好处?
a标签里 href=//xxx.xxx.com 这样不带协议头的写法有什么好处?
CPPoE
11 years, 8 months ago
Answers
Protocol Relative Urls: http://blog.httpwatch.com/2010/02/10/using-protocol-relative-urls-to-switch-between-http-and-https/
cc http://segmentfault.com/q/1010000000368868#a-1020000000368912
Imzcjie
answered 11 years, 8 months ago