javascript - When using Mint-UI, this.$toast() can be used, but the this object does not see $toast. What's going on?
大家讲道理
大家讲道理 2017-06-12 09:31:38
0
1
778

In main.js:
Vue.use(MintUI)
Vue.use(VueRouter)

Use in the vue instance:
console.log(this);
You can see $route and $router, etc.
I don’t see mintUI components such as $toast,
but I can use this.$toast();
Where does the $toast here come from?

大家讲道理
大家讲道理

光阴似箭催人老,日月如移越少年。

reply all(1)
左手右手慢动作

Open the prototype and see if there is any

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!