zlgopen / awtk-web

在浏览器中运行AWTK应用程序
GNU Lesser General Public License v2.1
23 stars 9 forks source link

怎么调用api从服务器获取数据 #3

Open poweel opened 4 years ago

poweel commented 4 years ago

一般web应用都会从服务器获取一些数据,还可能会提交一些表单,这方面awtk-web是怎么做的?

xianjimli commented 4 years ago

目前可以用这个函数:https://emscripten.org/docs/api_reference/fetch.html

xianjimli commented 4 years ago

我看看能不能提供一个统一的 API。

xianjimli commented 4 years ago

你参考一下:https://github.com/zlgopen/awtk-http-client