Type/to search
33
Follow
63
Followers
Sàn giao dịch Bithumb báo lỗi, vui lòng trợ giúp
FAQ
Created 2017-08-21 15:00:28  
 3
 2188

Mã như sau:
function main() {
var a = exchange.GetOrders();
Log(a);
Log(a.length);
}

Sai lầm là:

2017-08-21 14:51:39 lỗi TypeError: cannot read property 'length' of null main FILE:3
2017-08-21 14:51:39 Thông tin null
2017-08-21 14:51:39 Bithumb lỗi GetOrders: Không có giao dịch đang diễn ra.

A là null, nghĩa là dữ liệu của a không thể lấy được, và a.length sẽ chết khi chạy, trong trường hợp này exchange.GetOrders không được hỗ trợ.

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)