Type/to search
17
Follow
35
Followers
HttpQuery sẽ trả về kiểu dữ liệu nào nếu không thành công?
FAQ
Created 2019-04-11 22:33:43  
 3
 2066

HttpQuery sẽ trả về kiểu gì nếu thất bại?
NULL?

Related Recommendations
Comment
All comments (3)

    失败返回 null 。
    修改一下,超时 返回空字符串。

    7 years ago

    HttpQuery 出错。提示错误:Get xxxxxxxxxxxxxxxxx: net/http: request canceled (Client.Timeout exceeded while awaiting headers)
    不是null

    if (ret!== null && typeof(ret) !== 'undefined') {
    JSON.parse(ret) //导致这里出错:SyntaxError: invalid json (at offset 1)
    }

    盼指导

    7 years ago

    测试了 ,返回 空字符串。

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