【发布时间】:2014-10-16 02:02:31
【问题描述】:
我正在尝试使用 nodejs 和 expressjs 编写一个小型 Web api 来从 Steam(游戏平台)获取数据。
我正在使用这些家伙 nodejs 包装器:https://github.com/brainss/steamAPI
问题是,这家伙正在使用 console.log 作为回调...我在我的节点服务器控制台中获取数据就好了。
我需要它使用 expressJs 的 res.json 将数据作为 json 字符串返回。
谢谢
【问题讨论】: