我完全是前端的新手,努力缠绕着我的头。
我在VUE中有一个问题,我无法在任何地方找到答案:这里的“ Vuetify”对象在VUE构造函数中意味着什么?我确实知道veutify是什么,但是为什么它传递给了Vue构造函数?
import Vue from 'vue'
import App from './App.vue'
import vuetify from './plugins/vuetify'
Vue.config.productionTip = false
new Vue({
vuetify,
render: h => h(App)
}).$mount('#app')
我已经检查了VUE文档 https://012.vuejs.s.s.org/api/api/options.html
每个选项都有其保留名称,例如数据,方法等。但是没有通过第三方库或对象对其进行对象的定义。
有人可以帮我吗?
I'm totally a newbie in front end struggeling to wrap my head around it.
I have a question in Vue, for which I could't find answer anywhere: What does the 'vuetify' object here mean in the Vue constructor? I do know what veutify is, but why is it passed to the Vue constructor?
import Vue from 'vue'
import App from './App.vue'
import vuetify from './plugins/vuetify'
Vue.config.productionTip = false
new Vue({
vuetify,
render: h => h(App)
}).$mount('#app')
I have checked the Vue document https://012.vuejs.org/api/options.html
Every option has it's reserved name, like data, methods etc. But there are no definition of passing a 3rd party library or object to it.
Can anybody help me with this?
发布评论
评论(1)
您可以传递自定义或第三方选项/库,以便可以在VUE应用程序中使用它们。这些选项可在
vm。$ options
中获得。https:> https://012.vuejs.s.orgg/api/api/instance/instance -properties.html#vm- \ $ options
You can pass custom or 3rd-party options/libraries so you can use them in your Vue Application. Those options are available in
vm.$options
.https://012.vuejs.org/api/instance-properties.html#vm-\$options