直接使用:
<!-- vconsole -->
<script src="<https://cdn.bootcdn.net/ajax/libs/vConsole/3.9.1/vconsole.min.js>"></script>
<script type="text/javascript">
var vConsole = new window.VConsole();
</script>
安装:
// npm install vconsole
import VConsole from 'vconsole';
const vConsole = new VConsole();
// const vConsole = new VConsole({ maxLogNumber: 1000 });
// 销毁
vConsole.destroy();