为什么我继续看到“//”而不是“http://”资源最近? [英] why do I keep seeing "//" instead of "http://" for resources lately?
本文介绍了为什么我继续看到“//”而不是“http://”资源最近?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
src =// somepath
而不是
src =http:// somepath
这是什么以及它是什么意思?是否有任何文件?
谢谢!
被称为协议相对URL。 Paul Irish写了一篇关于它的很好的博客文章。
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!
解决方案
This is called protocol-relative URLs. Paul Irish has written a nice blog post about it.
这篇关于为什么我继续看到“//”而不是“http://”资源最近?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文