Appearance
KBE3D / KBCore / Cesium / getBaseUri
函数: getBaseUri()
getBaseUri(
uri:string,includeQuery?:boolean):string
Given a URI, returns the base path of the URI.
参数
uri
string
The Uri.
includeQuery?
boolean
Whether or not to include the query string and fragment form the uri
返回
string
The base path of the Uri.
示例
ts
// basePath will be "/Gallery/";
const basePath = Cesium.getBaseUri('/Gallery/simple.czml?value=true&example=false');
// basePath will be "/Gallery/?value=true&example=false";
const basePath = Cesium.getBaseUri('/Gallery/simple.czml?value=true&example=false', true);