给定一个URI,返回该URI的基路径。
Name | Type | Default | Description |
---|---|---|---|
uri |
String | Uri。 | |
includeQuery |
Boolean |
false
|
optional 是否包含构成uri的查询字符串和片段 |
Returns:
Uri的基路径。
Example:
// basePath will be "/Gallery/";
var basePath = Cesium.getBaseUri('/Gallery/simple.czml?value=true&example=false');
// basePath will be "/Gallery/?value=true&example=false";
var basePath = Cesium.getBaseUri('/Gallery/simple.czml?value=true&example=false', true);