根据页面本身的协议来决定加载脚本时使用的协议

index.html

<sript src="//example.js"></sript>
原文地址:https://www.cnblogs.com/aisowe/p/15250020.html