vue h5怎么查看打印信息,
一般我们开发时都会查看打印信息,来查找报错问题
但,如果是h5,在手机上是不可以像pc上的浏览器一样查看打印的。
使用腾讯的vConsole
gitee地址:https://gitee.com/Tencent/vConsole
github地址:https://github.com/Tencent/vConsole
里面有使用说明
这里我是使用的CDN引入的方式使用的
解决:在vue的public文件夹下的index.html引入使用
<script src="https://unpkg.com/vconsole@latest/dist/vconsole.min.js">script>
<script>
var vConsole = new window.VConsole();
script>
如图