<input type="button" value="导出" οnclick="exportExcel()">
//导出按钮
function exportExcel() {
$("#export").val(999);
localStorage.setItem("studentIds", '');
selectForm.submit();
}
//导出excel
if ($export == '999') {
$allRelation = array_column($allRelation, null, 'id');
if ($students !== '') {
$studentArr = explode(',', $students);
foreach ($studentArr as $k => $v) {
$studentArr[$k] = $allRelation[$v];
}
$exportRelation = $studentArr;
} else {
$exportRelation = $allRelation;
}
// print_r($exportRelation);die;
$exportInfo = self::getStudentInfo($exportRelatio