参数string filePath要写入的文件路径 string|ArrayBuffer data string encoding指定写入文件的字符编码 错误 错误码 错误信息 说明 fail no such file or directory, open ${filePath} 指定的 filePath 所在目录不存在 fail permission denied, open ${dirPath} 指定的 filePath 路径没有写权限