// 获取所有input let inputAll = document.querySelectorAll('.table_input input'); this.iddata = inputAll; // 向上 =38 if (item.keyCode === 38) { newIndex -= 8; if (inputAll[newIndex]) { inputAll[newIndex].focus(); } } 相关文章: 2022-12-23 2022-12-23 2022-01-09 2022-12-23 2021-12-09 2022-12-23 2022-02-05