以下实例实现的同一个操作

静态使用

this.$refs.tbhead.clearSelection();

动态使用

area="tbhead"    //可以是函数传入的参数
this.$refs[area].clearSelection();

相关文章: