为什么.vue文件debugger出来直接是源代码呀,初学者求解
<template>
<div id="app">
<img src="./assets/logo.png">
</div>
</template>
<script>
export default {
name: 'App'
}
</script>
<style>
#app {
font-family: 'Avenir', Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-align: center;
color: #2c3e50;
margin-top: 60px;
}
</style>
缺少外部引用
<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
要是工程的话,需要安装vue,再根据情况写
// 组件中
debugLog(){
this.$_debug(this.$store.state.logLevel, "rrrrrr", "cccc", "'cccccc")
this.$_info("this is info")
this.$_error("this is error")
this.$_warn("this is error")
// console.log()
}