private function addRow($data)
{
$cells = '';
foreach ($data as $val) {
$type = $this->type;
//字符转换为 HTML 实体
$val = htmlentities($val, ENT_COMPAT, $this->coding);
$cells .= "<Cell><Data ss:Type=\"{$type}\">" . $val . "</Data></Cell>\n";
}
return $cells;
}