Skip to content

Commit be2e117

Browse files
authored
fix fetch api styling (#505)
Change-Id: Ib963fb859bc218055f17eff78dc2b744527772c0
1 parent 50422d0 commit be2e117

File tree

2 files changed

+6
-15
lines changed

2 files changed

+6
-15
lines changed

docs/en/api/lynx-api/global/fetch.mdx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,13 @@ console.log(await response.json());
3434

3535
## Compatibility
3636

37-
:::Caution Differences from Web
3837

39-
- Client environment are different from Web, Lynx does not support Web-only features like: [CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS)、redirect、keepalive related APIs
38+
:::info
4039

41-
- Streaming/FormData/Blob related APIs are not supported
40+
- Client environment are different from Web, Lynx does not support Web-only features like: [CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS)、redirect、keepalive related APIs. FormData/Blob related APIs are not supported.
4241

43-
:::
44-
45-
:::Warning Web Platform Compatibility
42+
- Web Platform supports Fetch API using Browser's Fetch implementation, it follows the same rules as the web.
4643

47-
Web Platform supports Fetch API using Browser's Fetch implementation, it follows the same rules as the web.
4844

4945
:::
5046

docs/zh/api/lynx-api/global/fetch.mdx

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,19 +34,14 @@ console.log(await response.json());
3434

3535
## 兼容性
3636

37-
:::Caution 与 Web 的区别
37+
:::info
3838

39-
- 客户端环境与 Web 略有不同,不支持只在 Web 场景下存在的 [CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS)、redirect、keepalive 相关 API
39+
- 客户端环境与 Web 略有不同,不支持只在 Web 场景下存在的 [CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS)、redirect、keepalive 相关 API。FormData/Blob 相关 API 暂不支持
4040

41-
- Streaming/FormData/Blob 相关 API 暂不支持
41+
- Web Platform 中的 Fetch API 基于浏览器原生 Fetch 实现,兼容性与浏览器一致
4242

4343
:::
4444

45-
:::Warning Web Platform 兼容性
46-
47-
Web Platform 中的 Fetch API 基于浏览器原生 Fetch 实现,兼容性与浏览器一致
48-
49-
:::
5045

5146
import { APITable } from '@lynx';
5247

0 commit comments

Comments
 (0)