gpt4 book ai didi

javascript - 监听 API 的回调?

转载 作者:行者123 更新时间:2023-12-03 09:49:24 28 4
gpt4 key购买 nike

如何以 JSON 对象的形式接收对我网站上特定页面的回调?这些回调是从第三方 API 发出的,用于报告我与该 API 的通信状态。

我想过使用node.js的http.server.listen,但我找不到合适的例子来使用。

我正在使用 Meteor.js。

最佳答案

看起来meteor有ajax功能。如果 API 返回 JSON 对象,您应该能够通过传递给 Meteor 的 http 方法之一的回调函数中的 data 参数来访问它。

查看meteor http文档here .

关于javascript - 监听 API 的回调?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30922626/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com