1
有時候我看到劇本的src或圖片src沒有模式,只有兩個領先的斜線//網址兩大領先斜線,沒有模式
從http://www.performable.com/主頁
<script src="//d2f7h8c8hc0u7y.cloudfront.net/performable/pax/8uEvsz.js"></script>
http://www.hellobar.com/主頁 - 並將其納入代碼
<script type="text/javascript" src="//www.hellobar.com/hellobar.js"></script>
我已經在我的網站整合雙方並查看Apache日誌類似的錯誤
www.mysite.com//www.hellobar.com/hellobar.js not found
但是它們很少見 - 少於1%。
我認爲雙引導斜槓是http \ https的替代品,這種鏈接將使用當前頁面架構。有人可以證實嗎?
此外,哪些瀏覽器支持該url,哪些有問題?
[URI以兩個斜槓開頭的可能重複...他們如何表現?](http://stackoverflow.com/questions/4071117/uri-starting-with-two-slashes-how-do-they-表現) – Quentin 2011-05-14 07:47:48
是的,這是重複的。不幸的是,谷歌不搜索// – Kai 2011-05-16 07:22:40
[絕對網址省略協議(方案),以保留當前頁面](http://stackoverflow.com/questions/4978235/absolute-urls -omitting最協議方案合訂單到保留最之一的的) – 2016-06-13 14:23:17