vue移动端使用Vconsole Vconsole使用

H5移动端看一些接口返回的参数,或者console打印的参数之类,没办法直接查看,用电脑f12切换移动端测试没有真机测试准确,因此使用Vconsole特别方便。javascript

 

vue使用v-console

 

安装麻烦,因此引入第三方cdn简单快捷。css

下面是bootcss提供的cdn外链html

<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>

直接复制,放到vue项目下 public 下 index.html 中便可。vue

原文围观地址 http://www.sharedblog.cn/post/216.htmljava

我的博客http://sharedblog.cn/ide

软件下载http://iqzhan.com/post

相关文章
相关标签/搜索