Skip to content

KBE3D / KBCore / Cesium / getFilenameFromUri

函数: getFilenameFromUri()

getFilenameFromUri(uri: string): string

Given a URI, returns the last segment of the URI, removing any path or query information.

参数

uri

string

The Uri.

返回

string

The last segment of the Uri.

示例

ts
//fileName will be"simple.czml";
const fileName = Cesium.getFilenameFromUri('/Gallery/simple.czml?value=true&example=false');

KBE3D @3.0.0 Copyright © 2024-present KBE3D