YUI DataSource.GET 可以使用 HTTP POST 吗?

发布于 2025-01-06 05:19:37 字数 151 浏览 3 评论 0原文

好吧,我们在这里讨论 Yahoo YUI3:

当通过 DataSource.Get 发送请求时,是否可以通过 POST 而不是 GET 发送。我确定是这样!它必须是,但我在 api 文档中找不到它......有点令人困惑。

谢谢!

Ok we are talking Yahoo YUI3 here:

when sending a request via DataSource.Get is it possible to send via POST and not GET. Im sure it is! it has to be but i cant find it in the api docs... there a little confusing.

thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

千年*琉璃梦 2025-01-13 05:19:37

您无法使用 DataSource.GET 通过 POST 发送请求,我认为您想要的是 数据源.IO

使用 DataSource.IO 从服务器访问数据很容易,它使用
IO 实用程序通过 HTTP 检索数据。使用 DataSchema 插件
将传入数据规范化为已知格式以保持一致性
其他组件的使用。

有关如何使用它的示例,请参阅此处

you can't send a request via POST with DataSource.GET , I think what you want is DataSource.IO

Accessing data from a server is easy with DataSource.IO, which uses
the IO Utility to retrieve data over HTTP. A DataSchema plugin is used
to normalize incoming data into a known format for consistency of
usage by other components.

See here for an example of how to use it .

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文