跳转至
400-881-9892

文档中心

官方文档,可查阅产品介绍、快速入门、用户指南、开发指南、API参考、SDK参考、帮助等信息。

文档中心 互动课堂

Other Classes

Other categories

  • This page documents the related auxiliary function tools
TKResponse
  • TKResponse is an asynchronous Promise interface that returns the resolve result
name type description
code number Success status code, with a value of 0
data * API-related data
TKError
  • TKResponse is an asynchronous Promise interface that returns the reject result
name type description
code number Failure status code
message { messageCode: number, messageInfo: string } Failure message
Log-related(Logger)
  • The logging class uploads logs of the specified level to the cloud server, which facilitates logging and problem localization
  • Method example

1
var Logger = TK.Logger
- debug Log - This method prints logs at the debug level, which will not be reported - Method example

1
TK.Logger.debug(‘this is debug log’);
- info Log - This method prints logs at the info level - Method example

1
TK.Logger.info(‘this is info log’);
- warning Log - This method prints logs at the warning level - Method example

1
TK.Logger.warning(‘this is warning log’);
- error Log - This method prints logs at the error level - Method example

1
TK.Logger.error(‘this is error log’);