Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
536 views
in Technique[技术] by (71.8m points)

element有关问题

image.png
install这段啥意思


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

这里注册一个install方法主要是使用vue.use()来注册这个组件。在使用vue.use()时,当传进去的参数是对象时,vue.use()会调用对象中的install方法,通过install方法,可以得到vue示例。你可以看一下vue源码中的initUse 函数。


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...