H5使用vConsole移动调试工具
普通JavaScript中使用
<script src="https://cdn.bootcss.com/vConsole/3.3.4/vconsole.min.js"></script>
<script>
// init vConsole
var vConsole = new VConsole();
</script>
Vue中使用
首先使用命令在项目中引入vconsole
yarn add vconsole
然后在main.js中加入以下代码:
import Vconsole from 'vconsole'
let vConsole = new Vconsole()
Vue.use(vConsole)
版权声明:
作者:Joe.Ye
链接:https://www.appblog.cn/index.php/2023/03/12/h5-use-vconsole-mobile-debugging-tool/
来源:APP全栈技术分享
文章版权归作者所有,未经允许请勿转载。
THE END
0
二维码
打赏
海报


H5使用vConsole移动调试工具
普通JavaScript中使用
<script src="https://cdn.bootcss.com/vConsole/3.3.4/vconsole.min.js"></script>
<script>
// ini……

文章目录
关闭
共有 0 条评论