开发者

Best method to include an external js with the current HTTP protocol

What's the cleanest method to include an external javascript using the current HTTP开发者_开发知识库 protocol type to avoid SSL partial security issues.


<script src="//whatever-domain.com/path/to/script.js" type="text/javascript"></script>


Dropping the scheme, but leaving the double slash will use the current scheme

//www.example.com/foo/bar.js
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜