移动端打开控制台

一.只需要在HTML中插入以下代码即可

---------------阿里提供的方式,原文链接https://developer.aliyun.com/article/907922

<script src="https://cdn.jsdelivr.net/npm/eruda"></script>
<script>
eruda.init();
console.log('控制台打印信息');
</script>

 

二.vconsole

<script src='https://cdn.bootcss.com/vConsole/3.2.2/vconsole.min.js' type="text/javascript" charset="utf-8"></script>

<script>

window.vConsole = new window.VConsole()

</script>

 

 

 

posted @ 2023-01-06 14:12  龙儿哥哥的博客  阅读(267)  评论(0编辑  收藏  举报