let firstRow: any = document.querySelector(".el-table__row:first-child"); firstRow.click(); 注意要确保已经获取到了dom元素否则会报错