- npm install vconsole
- 在需要的页面引入 ,并初始化
<script> import Vconsole from 'vconsole'; export default { created() { let vConsole = new Vconsole(); } } </script>
先安装vconsole组件,然后vue页面调用即可,注意一定要放在created方法里面。否则报错
标签:Vconsole,created,h5,vconsole,调试,页面 From: https://www.cnblogs.com/feimengv/p/17755283.html