jQuery移动HTTPS失败

I am trying to code a website that uses PHP protocol toggling to switch from HTTP and HTTPS on the fly but since I have coded my website in JQuery mobile now, it seems to just hit the "error loading page" and never loads those sections of my website. What might be causing that?

Although it is slightly different in nature, this question will help you resolve your issue: AJAX calls to untrusted (self-signed) HTTPS fail silently.

Because you are most likely using a self-signed certificate or a certificate for a different subdomain, AJAX calls will fail by default since they cannot accept the certificate for security purposes.

You can add rel="external" in every tag to redirect to from http => https or https => http