【发布时间】:2023-04-04 15:26:01
【问题描述】:
我的代码指定
this._restUrl = "http://" + this._info.host + "/app/rest/";
问题是我不知道在使用 SSL 时如何让它使用“https://”。如何将其转换为 http 或 https 语句?这适用于 http,因为它是正常的。
【问题讨论】:
-
你也可以
window.location.protocol + "//" + this._info...
标签: javascript https