笨办法 const textToCopy = this.$refs.translationResult.$el.getElementsByTagName('textarea')[0] textToCopy.select()