微软参考文档:https://docs.microsoft.com/en-us/aspnet/core/tutorials/web-api-help-pages-using-swagger?tabs=visual-studio 在 .net core 中使用 swagger 生成接口文档跟在 asp Read More
posted @ 2018-11-06 14:36
gygtech
Views(924)
Comments(0)
Diggs(0)
(1)EmptyResult:当用户有误操作或者是图片防盗链的时候,这个EmptyResult就可以派上用场,返回它可以让用户啥也看不到内容,通过访问浏览器端的源代码,发现是一个空内容; (2)Content:通过Content可以向浏览器返回一段字符串类型的文本结果,就相当于Response.Wr Read More
posted @ 2018-11-06 10:11
gygtech
Views(1789)
Comments(0)
Diggs(1)

浙公网安备 33010602011771号