<script src="//cdnjs.cloudflare.com/ajax/libs/es5-shim/2.2.0/es5-shim.min.js"></script>
src的值以//开头,省略了协议,则在加载js时,使用当前页面在协议。
如果当前页面是https则以https进行加载
如果当前页面是http则以http进行加载
如果当前页面是ftp则以ftp进行加载
参考:https://www.paulirish.com/2010/the-protocol-relative-url/