リターン・ファイル

        公共のActionResult DownloadMessage()
        { 
            文字列 strExportData = " 无数据!" バイト []データ= System.Text.Encoding.GetEncoding(" 2312 " ).GetBytes(strExportData)。
            リターン・ファイル
                    データ、
                    " アプリケーション/ X-msexcel " ストリング .Format(" ErrorInfo_ {0}の.csv " 
                    DateTime.Now.ToString(" YYYYMMDDHHMMSS " ))
                ); 
        }

今日はトリックを学びました。

ます。https://www.cnblogs.com/ushou/p/3419588.htmlで再現

おすすめ

転載: blog.csdn.net/weixin_34306446/article/details/93162570