2012-04-16 191 views
11

可能重复:
Is it valid to replace with // in a <script src=“…”>?
Absolute URLs omitting the protocol (scheme) in order to preserve the one of the current page哪些浏览器支持“//”而不是“http://”和“https://”?

我无法在谷歌找到这事 - 这是很难找到一些有关 “//” :)

无论如何,请告诉,哪些浏览器支持“//”而不是“http://”和“https://”?我想用它来包含图像,脚本,样式等,但它是否安全?有没有一个浏览器不支持这个,我需要提供一个协议?

+2

可能重复(http://stackoverflow.com/questions/4978235/absolute -urls-omitting-the-protocol-scheme-in-order-to-preserve-the-one-of-the)和http://stackoverflow.com/questions/550038/is-it-valid-to-replace -http-WITH-IN-A-脚本-SRC-HTTP – Quentin 2012-04-16 12:36:12

回答

相关问题