分享你我的心得.
共乘一片美好网络.

https网站引用http路径的js和css失效解决办法

在https的网站中引用http路径的js或css会导致不起作用,其形如:Html

<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>

解决办法:
http:去掉,改为Html

<script src="//code.jquery.com/jquery-1.11.0.min.js"></script>
赞(0)
未经允许不得转载:小叶白龙博客 » https网站引用http路径的js和css失效解决办法
分享到: 更多 (0)

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址