vconsole.min.js

1、在你的HTML页面中加入这个库的引用

<script src="http://s.url.cn/qqun/qun/qqweb/m/qun/confession/js/vconsole.min.js "></script>

     <script>

//如果只是获取log,建议不用初始化,不然如果你的页面中有些编译错误时,页面的控件就不能监听事件

//看自己需求吧

      //var vConsole = new VConsole();

      console.log("111")

     </script>
 

2、引入库之后,运行你会发现屏幕右下角多了一个绿色的按钮,如下图

获取手机中运行的H5的log

3、点击这个绿色的按钮,会跳转到下图这个页面

获取手机中运行的H5的log

如果你需要日志,可以长按选中复制

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-27
  • 2021-05-15
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-19
  • 2022-12-23
  • 2022-12-23
  • 2021-10-12
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案