why do I keep seeing “//” instead of “http://” for resources lately?

ⅰ亾dé卋堺 提交于 2019-12-10 14:49:57

问题


I saw more an more Javascript files and pictures and CSS loaded like this:

src="//somepath"

instead of

src="http://somepath"

What is this and what does it mean? Is there any documentation to it?

Thanks!


回答1:


This is called protocol-relative URLs. Paul Irish has written a nice blog post about it.



来源:https://stackoverflow.com/questions/9358609/why-do-i-keep-seeing-instead-of-http-for-resources-lately

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!