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





















!["[GIS Book/EPUB] The GIS 20: Essential Skills(PDF版本)](https://image.malagis.com/gis00/book-cover/55a7d14785d13e8ae0ef646fcb3136b3-g.jpg?imageView2/1/w/100/h/70)










