Type/to search
33
Follow
63
Followers
A bolsa Bithumb relata um erro, por favor ajude
FAQ
Created 2017-08-21 15:00:28  
 3
 2188

O código é o seguinte:
function main() {
var a = exchange.GetOrders();
Log(a);
Log(a.length);
}

O erro é o seguinte:

2017-08-21 14:51:39 Erro TypeError: cannot read property 'length' of null main FILE:3
2017-08-21 14:51:39 Informações null
2017-08-21 14:51:39 Bithumb Erro GetOrders: Não existe uma transação em andamento.

A corretora de erros não morre, a é null, o que significa que a data de a não pode ser obtida, além disso, a execução de a.length morre, o que significa que a exchange.GetOrders não é suportada nesta plataforma.

Related Recommendations
Comment
All comments (3)

    梦总,bithumb有币币兑换功能,比如能把BTC直接兑换成LTC,请问该功能用代码怎样实现

    8 years ago

    错误 TypeError: cannot read property ‘length’ of null main FILE:3 这个报错是 语法错误
    var a = exchange.GetOrders(); 获取失败了 // 报错: Bithumb 错误 GetOrders: 거래 진행중인 내역이 존재하지 않습니다.
    a就是 null 了
    在访问一个 null 的 length 属性 ,就会引发报错,导致程序停止。
    这个报错是 JS 语言层面的。

    9 years ago

    谢谢额,弄好了

    9 years ago
  • 1
Forums
PINE Language
Get the app
iPhone Download
© 2015 - ∞ INVENTOR PTE LTD (SG)