提交 fce42134 编写于 作者: taohebin@dcloud.io's avatar taohebin@dcloud.io

Update request.md

上级 2ae937d8
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
## 注意事项 ## 注意事项
* request 接口内部通过[特殊方式读取了范型类型](../../uts/generics.md#使用限制),不支持传入动态的范型:比如将外层方法的普通范型参数传入 request。 * request 接口内部通过[特殊方式读取了泛型类型](../../uts/generics.md#使用限制),不支持传入动态的泛型:比如将外层方法的普通泛型参数传入 request。
* 如果使用泛型先创建RequestOptions实例,再传入uni.request(),此时请务必确保request要显式指定泛型,例: * 如果使用泛型先创建RequestOptions实例,再传入uni.request(),此时请务必确保request要显式指定泛型,例:
```typescript ```typescript
const options: RequestOptions<Person> = ... const options: RequestOptions<Person> = ...
...@@ -25,4 +25,4 @@ ...@@ -25,4 +25,4 @@
<!-- UTSAPIJSON.general_type.name --> <!-- UTSAPIJSON.general_type.name -->
<!-- UTSAPIJSON.general_type.param --> <!-- UTSAPIJSON.general_type.param -->
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册