# console


向调试面板中打印日志。console 是一个全局对象,可以直接访问。在客户端中,向 vConsole 中输出日志。

# console.debug()

向调试面板中打印 debug 日志。

# 参数

# any ...args

日志内容,可以有任意多个。

# console.log()

向调试面板中打印 log 日志。

# 参数

# any ...args

日志内容,可以有任意多个。

# console.info()

向调试面板中打印 info 日志。

# 参数

# any ...args

日志内容,可以有任意多个。

# console.warn()

向调试面板中打印 warn 日志。

# 参数

# any ...args

日志内容,可以有任意多个。

# console.error()

向调试面板中打印 error 日志。

# 参数

# any ...args

日志内容,可以有任意多个。

# 示例代码

console.debug('debug');
console.log('log');
console.info('info');
console.warn('warn');
console.error('error');