optimized
This commit is contained in:
@ -22,19 +22,19 @@
|
||||
progress?: (this: XMLHttpRequestUpload, ev: ProgressEvent<XMLHttpRequestEventTarget>) => any
|
||||
}</pre>
|
||||
</p>
|
||||
<h3>method?: string</h3>
|
||||
<h4>method?: string</h4>
|
||||
<p>
|
||||
请求类型,默认为 GET 或 POST
|
||||
</p>
|
||||
<h3>accept?: string</h3>
|
||||
<h4>accept?: string</h4>
|
||||
<p>
|
||||
Accept 请求头的值
|
||||
</p>
|
||||
<h3>contentType?: string</h3>
|
||||
<h4>contentType?: string</h4>
|
||||
<p>
|
||||
Content-Type 请求头的值
|
||||
</p>
|
||||
<h3>customerHeaders?: { [key: string]: string }</h3>
|
||||
<h4>customerHeaders?: { [key: string]: string }</h4>
|
||||
<p>
|
||||
自定义请求头,例如
|
||||
<pre>{
|
||||
@ -42,11 +42,11 @@
|
||||
'X-Auth-Token': 'xxxxxx'
|
||||
}</pre>
|
||||
</p>
|
||||
<h3>signal?: AbortSignal | null</h3>
|
||||
<h4>signal?: AbortSignal | null</h4>
|
||||
<p>
|
||||
终止器的信号,用来控制终止请求任务
|
||||
</p>
|
||||
<h3>progress?: (this: XMLHttpRequestUpload, ev: ProgressEvent<XMLHttpRequestEventTarget>) => any</h3>
|
||||
<h4>progress?: (this: XMLHttpRequestUpload, ev: ProgressEvent<XMLHttpRequestEventTarget>) => any</h4>
|
||||
<p>
|
||||
调用 upload 方法时在上传过程中触发的事件,返回进度参数
|
||||
</p>
|
||||
|
Reference in New Issue
Block a user