移动端控制台插件vConsole.min.js

原文地址:https://www.jianshu.com/p/5e2a6a286be6?utm_campaign=maleskine&utm_content=note&utm_medium=seo_notes

demo地址:http://wechatfe.github.io/vconsole/demo.html

 

vConsole github地址

BootCDN搜索对应的版本引入

<script type="text/javascript" src="https://cdn.bootcss.com/vConsole/3.3.0/vconsole.min.js"></script>

<script>
    // 初始化
    var vConsole = new VConsole();
    console.log('Hello world');
</script>

使用:

<script>
    // 初始化vConsole
    window.vConsole = new window.VConsole();
</script>

 

posted @ 2022-06-23 09:14  Ann丶  阅读(1186)  评论(0编辑  收藏  举报