用setCellValueExplicit替换setCellValue即可,因为value里还有“=”导致报错
$as->setCellValue(“A{$x}”, $row->uid);
$as->setCellValueExplicit(“B{$x}”, $row->nickname);
$as->setCellValue(“C{$x}”, $row->level);
用setCellValueExplicit替换setCellValue即可,因为value里还有“=”导致报错
$as->setCellValue(“A{$x}”, $row->uid);
$as->setCellValueExplicit(“B{$x}”, $row->nickname);
$as->setCellValue(“C{$x}”, $row->level);