使用VConsole
1。head标签内引入
<script src="https://cdn.bootcss.com/vConsole/3.3.0/vconsole.min.js"></script>
2. 初始化
<script> window.ifShowVconsole = 'true' if (VConsole && window.ifShowVconsole === 'true') { var vconsole = new VConsole(); } </script>