English
getImageUrlFromNpath
About 93 wordsLess than 1 minute
2025-04-28
This method converts a Fxiaoke nPath into a loadable image URL.
FxUI.util.getImageUrlFromNpath(Npaths: Array<string>)Parameters
| Parameter | Description | Type | Optional Values | Default |
|---|---|---|---|---|
| Npaths | List of image Npaths | Array<string> | — | [] |
Return Value
| Parameter | Description | Type | Optional Values | Default |
|---|---|---|---|---|
| data | Returned image list data | Array<object> | — | [] |
Description of each object item inside the array
| Parameter | Description | Type | Optional Values | Default |
|---|---|---|---|---|
| url | Image URL | string | — | '' |
Code Example
This method returns a Promise object, as shown below:
FxUI.util.getImageUrlFromNpath(['N_xxxxxxxx']).then((res) => {
// The structure of res is [{url: xxx}]
})