怎么让vue3.0打印的数据更直接

30 阅读1分钟

vue3源码中使用console的formatter,当你使用console.log的时候,打印时侯更直观。需要在console设置中手动开启一下。

没设置前

image.png

谷歌浏览器为例:

浏览器f12右边小齿轮点开 image.png

设置后

image.png