ref used in two cases

First, if used on a regular DOM elements, a reference point is the DOM element.

    this.$refs.DOM

Second, if used in the subassembly, to a reference to a component instance.

    this.$refs.DOM.$el

Guess you like

Origin www.cnblogs.com/buwngchuxin/p/11009660.html