我的github自述表无法以正确的方式呈现。我用这个:
Request options:
| Option | Description |
| --- | --- |
| url | Request url |
| method | ```'get'``` \| ```'post'``` \| ```'put'``` \| ```'delete'``` - (default: ```'get'```) |
| headers | optional array: ```[{name: string, value: string}]``` |
| body | Request body (any type) |
| responseType | ```'text'``` \| ```'json'``` - (defult: ```'text'```) |
| success | Success function - ```function(data) { }``` |
| error | Error function - ```function(err) { }``` |
但是渲染一下:
答案 0 :(得分:0)
我把它整理好了。我应该在"请求选项"之间划一条线。和桌子。
Request options:
| Option | Description |
| --- | --- |
| url | Request url |
| method | ```'get'``` \| ```'post'``` \| ```'put'``` \| ```'delete'``` - (default: ```'get'```) |
| headers | optional array: ```[{name: string, value: string}]``` |
| body | Request body (any type) |
| responseType | ```'text'``` \| ```'json'``` - (defult: ```'text'```) |
| success | Success function - ```function(data) { }``` |
| error | Error function - ```function(err) { }``` |