方法

    console.debug()

    向调试面板中打印 debug 日志

    console.log()

    向调试面板中打印 log 日志

    console.info()
    console.warn()

    向调试面板中打印 warn 日志

    console.error()

    向调试面板中打印 error 日志

    console.group(string label)
    console.groupEnd()

    结束由 创建的分组

    注意

    • 由于 vConsole 功能有限,以及不同客户端对 console 方法的支持情况有差异,建议开发者在小程序中只使用本文档中提供的方法。
    • 部分内容展示的限制请参见调试