浏览代码

Update README_zh.md

王杰新 7 年之前
父节点
当前提交
d4ce180b78
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      README_zh.md

+ 2 - 1
README_zh.md

@@ -119,7 +119,8 @@ $config = ['path' => '/home/viest'];
 
 
 $excel = new \Vtiful\Kernel\Excel($config);
 $excel = new \Vtiful\Kernel\Excel($config);
 
 
-$filePath = $excel->fileName('tutorial01.xlsx')
+// fileName 会自动创建一个工作表,你可以自定义该工作表名称,工作表名称为可选参数
+$filePath = $excel->fileName('tutorial01.xlsx', 'sheet1')
     ->header(['Item', 'Cost'])
     ->header(['Item', 'Cost'])
     ->data([
     ->data([
         ['Rent', 1000],
         ['Rent', 1000],