getHost() 函数返回在 url 参数中规定的主机。
n = URL.getHost(url)
var a = URL.getHost("https://www.eruiyi.cn/wml"); var b = URL.getHost("/wml/functions");
a = "www.eruiyi.cn" b = ""
微信小程序
微信扫一扫体验
微信公众账号
微信扫一扫加关注
发表评论 取消回复