Skip to content

Vue 获取 Element UI 中的 Textarea

Published: at 05:16 PMSuggest Changes

笨办法

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

Previous Post
JS 文本选择监听
Next Post
JS 实现点击按钮复制文本到剪贴板