how can I use console.error or console.log in a vue template?

后端 未结 5 1882
自闭症患者
自闭症患者 2021-02-05 03:44

I have a vue component with

 

gives

app.js:47961 [Vue war

5条回答
  •  旧巷少年郎
    2021-02-05 04:38

    Also if you want to access console from {{ }} you can use global mixin:

    Vue.mixin({
        computed: {
            console: () => console
        }
    })
    

提交回复
热议问题