Javascript is not working in https

前端 未结 2 1211
清歌不尽
清歌不尽 2020-12-22 13:30

I have just added https to my site and apparently the only script I have in my site has stopped working. I don\'t think it is a problem of the script but here it is:

2条回答
  •  南方客
    南方客 (楼主)
    2020-12-22 14:12

    Add your jQuery file like this, without mentioning the protocol explicitely

    
    

    removing http: part from src means you don't want to load external files/resources with fixed protocol that you are mentioning in the src, rather you want to load the external resources with the same protocol the demanding resource is residing.

提交回复
热议问题