fetch
Syntax
Parameters
resource
This defines the resource that you wish to fetch. This can either be:
-
A string or any other object with stringify API — including a URL object — that provides the URL of the resource you want to fetch.
-
A
Requestobject.
options
A RequestInit object containing any custom settings that you want to apply to the request.
Example
Compatibility
Info
-
Client environment are different from Web, Lynx does not support Web-only features like: CORS、redirect、keepalive related APIs. FormData/Blob related APIs are not supported.
-
Web Platform supports Fetch API using Browser's Fetch implementation, it follows the same rules as the web.
LCD tables only load in the browser
Headers
LCD tables only load in the browser
Request
LCD tables only load in the browser
Response
LCD tables only load in the browser