Appearance
KBE3D / KBCore / Cesium / getAbsoluteUri
函数: getAbsoluteUri()
getAbsoluteUri(
relative:string,base?:string):string
Given a relative Uri and a base Uri, returns the absolute Uri of the relative Uri.
参数
relative
string
The relative Uri.
base?
string
The base Uri.
返回
string
The absolute Uri of the given relative Uri.
示例
ts
//absolute Uri will be "https://test.com/awesome.png";
const absoluteUri = Cesium.getAbsoluteUri('awesome.png', 'https://test.com');