从 info 地址解析 origin(协议 + 主机 + 端口)。
会先调用 resolveRtsInfoUrl 将相对路径转为完整 URL,再提取 origin 部分。
RTS info 地址
origin 字符串;解析失败返回 undefined
parseRtsOrigin('http://localhost:9009/ts/info/ts01') // => 'http://localhost:9009'parseRtsOrigin('/ts/info/ts01') // => 'http://localhost:29009'(取决于当前页面) 复制
parseRtsOrigin('http://localhost:9009/ts/info/ts01') // => 'http://localhost:9009'parseRtsOrigin('/ts/info/ts01') // => 'http://localhost:29009'(取决于当前页面)
从 info 地址解析 origin(协议 + 主机 + 端口)。
会先调用 resolveRtsInfoUrl 将相对路径转为完整 URL,再提取 origin 部分。