在 Vue 3 中,可以使用 v-on 或者其简写形式 @ 来监听 DOM 事件,包括 input 的 focus 事件。以下是一个示例: template input @focus="handleFocus" / /template script export default { ..