https calls http's js

 

 

Reference: https://www.apieye.com/674.html

 

When $.getScript() calls the js interface provided by some portal websites, such as the ip address, region, weather, etc. that need to be accessed by the client's browser, the https protocol cannot call the http js interface

 

Solution: (remove http:)

Such as:

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

 change to

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

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326180567&siteId=291194637