1.初始化一个hellouni项目,获得默认的html文件
2.然后打开manifest.json 选择h5配置
3.找到刚刚导入的html文件,body中加入
<script src="https://cdn.bootcss.com/eruda/1.4.3/eruda.min.js"></script> <script>eruda.init();</script>
或
<script type="text/javascript" src="//wap.cmread.com/rbc/t/content/repository/ues/js/s109/vconsole.js"></script> <script type="text/javascript"> var vConsole=new VConsole(); </script>
重新运行可看到
转载https://blog.csdn.net/qq_38026437/article/details/104275177