vconsole 背景vconsole背景hybrid项目中,在使用测试机调试阶段,app想要查看h5的一些信息的话,可以利用 vconsole h5使用1$ npm install vconsole 123456789101112import VConsole from 'vconsole';// 实例化一个 vconsoleconst vConsole = new VConsole();// or init with optionsconst vConsole = new VConsole({ theme: 'dark' });// 正常打印即可console.log('Hello world');// 结束销毁vConsole.destroy(); #业务与工程背景 vconsole http://example.com/2022/12/22/vconsole/ Author John Doe Posted on December 22, 2022 Licensed under js设计模式 Previous continue跳出多重循环 Next