【发布时间】:2018-02-13 00:20:56
【问题描述】:
安装 square-connect 并运行我看到的测试代码后:
api.listLocations.then 不是函数
节点-v v9.4.0
有什么我需要做的不是安装说明中的特殊操作吗?
【问题讨论】:
标签: square-connect
安装 square-connect 并运行我看到的测试代码后:
api.listLocations.then 不是函数
节点-v v9.4.0
有什么我需要做的不是安装说明中的特殊操作吗?
【问题讨论】:
标签: square-connect
您阅读的示例代码中有一个错误(感谢您提醒我们注意!)。每当this pull request 被合并时,它都会被修复。
你应该使用api.listLocations().then(function(data) {而不是api.listLocations.then(function(data) {
【讨论】: