# console

Output the log information to the console.

# debug

Output the debug log to the console

Note: Debug method on the App side is equivalent to the log method.

# log

Output the log to the console

# info

Output the info log to the console

# warn

Output the warn log to the console

# error

Output the error log to the console

Notice:

  • There are differences in supporting console methods of different platforms. In the development process, only to use the methods mentioned in this document is recommended.
  • There are two important code blocks in HBuilderX. Knock clog to directly output console.log(); Knock clogv to output console.log(": " + );, and double cursors appear, which is convenient for printing variable names and values simultaneously.