前端脱敏身份证号 <el-table-column prop="idCard" label="身份证" align="center" :show-overflow-tooltip="true" > <template slot-scope="scoped"> <span>{{ scoped.row.idCard.replace(/^(.{4})(?:\d+)(.{4})$/, "$1 **** **** $2") }}</span> </template> </el-table-column>