Browser support for URLs beginning with double slash

后端 未结 2 805
执笔经年
执笔经年 2020-11-29 02:27

I\'ve recently seen a few links used without a protocol. It didn\'t seem too difficult to understand - I think it\'s a great idea and pretty intuitive.

For those of

2条回答
  •  被撕碎了的回忆
    2020-11-29 02:37

    If you are developing on a local machine there's possibility it will fail with src="file://host.com/filename".

    In this situation you need to specify scheme explicitly: http://host.com/filename or https://host.com/filename.

提交回复
热议问题