【问题标题】:How is url without protocol differs from a simple one?没有协议的 url 与简单的 url 有何不同?
【发布时间】:2019-06-12 11:35:31
【问题描述】:

我经常看到人们使用如下 URL 获取 CDN 资源。

 <script src="//site.domain.com"></script> 

我想知道如果将浏览器指定为“https://site.domain.com”会有什么不同

【问题讨论】:

    标签: url browser


    【解决方案1】:

    意思是与实际文件“保持相同的方案”。

    shorthand http:// as // for script and link tags? anyone see / use this before?

    更新:正确的链接。

    【讨论】:

    • 递归链接?)
    猜你喜欢
    • 2014-05-09
    • 2011-03-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多