![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
.net core
故丶
一个搬砖的程序猿
展开
-
.net core 文件上传
.net文件上传 1.前端代码 <form id="uploadForm"> <input type="file" name="file" multiple /> <input type="button" value="上传" onclick="doUpload()" /> </form> <script>...转载 2019-05-21 12:14:40 · 4431 阅读 · 0 评论 -
.net core使用Session笔记
配置Session 在Startup.cs文件中的ConfigureServices方法中添加: //services.AddSession(); //不加生命周期 放在services.AddMvc();之前调用 //若需要加入生命周期则为 services.AddSession(options => { options.Idl...转载 2019-06-10 14:18:28 · 666 阅读 · 0 评论