Vue.use( plugin )

Vue.use( plugin )

Arguments:
    {Object | Function} plugin

Usage:

Install a Vue.js plugin. If the plugin is an Object, it must expose an install method. If it is a function itself, it will be treated as the install method. The install method will be called with Vue as the argument.

This method has to be called before calling new Vue()

When this method is called on the same plugin multiple times, the plugin will be installed only once.

See also: Plugins
发布了133 篇原创文章 · 获赞 189 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/blog_programb/article/details/105603367