移动端除了抓包还有一个小程序插件
将下面的代码引入在首页,如vue,引入在index.html
方法一:
<script src="https://wechatfe.github.io/vconsole/lib/vconsole.min.js?v=3.3.0"></script>
<script>
window.vConsole = new window.VConsole(
console.info('开始使用'))
</script>
方法二:
** 安装:yarn add vconsole -s 或 npm install vconsole **
引入
<script src="node_modules/vconsole/dist/vconsole.min.js"></script>
<script>
var vConsole = new VConsole();
console.log('Hello world');
</script>