@kwayteow/utils - v0.6.0
Preparing search index...
fetchFileContent
Function fetchFileContent
fetchFileContent
(
url
:
string
,
options
?:
{
headers
?:
Record
<
string
,
string
>
;
responseType
?:
"text"
|
"arraybuffer"
;
}
,
)
:
Promise
<
string
|
ArrayBuffer
>
从远程URL获取文件内容
Parameters
url
:
string
文件的URL地址
Optional
options
:
{
headers
?:
Record
<
string
,
string
>
;
responseType
?:
"text"
|
"arraybuffer"
}
请求选项(可选)
Returns
Promise
<
string
|
ArrayBuffer
>
Promise<string | ArrayBuffer> 文件内容(文本或二进制数据)
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
@kwayteow/utils - v0.6.0
Loading...
从远程URL获取文件内容