可运用npm举行装置
GitHub地点:https://github.com/Tencent/vC…
npm install vconsole
在项目的根html文件的<head>标签中引入dist/vconsole.min.js
<script src="path/to/vconsole.min.js"></script>
<script>
// init vConsole
var vConsole = new VConsole();
console.log('Hello world');
</script>
也可运用CDN免装置
CDN地点:https://www.bootcdn.cn/vConsole/
<script src="https://cdn.bootcss.com/vConsole/3.2.2/vconsole.min.js"></script>
<script>
var vConsole = new VConsole();
console.log('hello world')
</script>
一样须要放在项目根html文件的<head>标签中