Home > SYS_FileSystem > revokeObjectURL
SYS_FileSystem.revokeObjectURL() method
Revoke the ObjectURL
Signature
typescript
function revokeObjectURL(url: string): void;1
Parameters
Parameter | Type | Description |
|---|---|---|
url | string | ObjectURL string |
Returns
void
Remarks
Revoke the specified ObjectURL ADD since EDA v3.2.162
Example
javascript
// 1. 先创建一个 ObjectURL
const blob = new Blob(['嘉立创示例数据']);
const url = eda.sys_FileSystem.createObjectURL(blob);
console.log('创建的 ObjectURL:', url);
// 2. 用完后吊销(同步方法,无返回值)
eda.sys_FileSystem.revokeObjectURL(url);
console.log('已吊销');1
2
3
4
5
6
7
8
2
3
4
5
6
7
8