开发者

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

开发者 https://www.devze.com 2023-02-04 03:12 出处:网络
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/

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

精彩评论

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

关注公众号