<el-button @click="recordtext($event)" >1</el-button> recordtext(event) { let val=event.currentTarget.innerHTML.match(/(<span>=?)(\S*)(?=<\/span>)/)[2]; console.log(val) },
1、<el-table>标签写入 ref="multipleTable" 2、<el-table-column>标签写入 type="selection" 3、<el-button>标签写入 @click="" 4、methods中button对应的click事件方法中写入 this.$refs.multipleTable.selection <el-table:data="tableData"ref="multipleTable"><el-table-columntype="selection"width="50"...
通过选择器直接获取所有 el-button 设置禁用 functiondisabledAllButton(disabled){constbuttons=document.que...