Home > sculp-js > chooseLocalFile
chooseLocalFile() function
选择本地文件
Signature:
typescript
export declare function chooseLocalFile(accept: string, changeCb: (FileList: any) => any): void;Parameters
Parameter | Type | Description |
|---|---|---|
accept | string | 上传的文件类型,用于过滤 |
changeCb | (FileList: any) => any | 选择文件回调 |
Returns:
void
{HTMLInputElement}