摘要: 言:这两天在整WebApi的服务,由于调用方是Android客户端,Android开发人员也不懂C#语法,API里面的接口也不能直接给他们看,没办法,只有整个详细一点的文档呗。由于接口个数有点多,每个接口都要详细说明接口作用、参数类型、返回值类型等等,写着写着把博主惹毛了,难道这种文档非要自己写不成 阅读全文
posted @ 2016-10-23 01:03 东少 阅读(869) 评论(0) 推荐(0) 编辑
摘要: 原文地址:http://www.cnblogs.com/Arrays/p/5146194.html?utm_source=tuicool&utm_medium=referral 1.前言 1.1 SwaggerUI SwaggerUI 是一个简单的Restful API 测试和文档工具。简单、漂亮、 阅读全文
posted @ 2016-10-23 00:39 东少 阅读(471) 评论(0) 推荐(0) 编辑
摘要: Content-Type: multipart/form-data; boundary acebdf13572468User-Agent: FiddlerContent-Length: 369Host:xxxxxx request body为以下内容 acebdf13572468Content-Di 阅读全文
posted @ 2016-10-10 19:40 东少 阅读(870) 评论(0) 推荐(0) 编辑
摘要: svn提交时强制注释不少开发员提交修改的时候都不写注释,导致查看历史时很费劲,也不太符合规范。有的公司要求每次提交修改时都写上bug号或者任务描述,那么如何在工具上防止开发员们不写注释呢? 利用svn的pre-commit钩子可简单实现此要求。进入仓库project1/hooks目录,找到pre-c... 阅读全文
posted @ 2016-01-02 13:27 东少 阅读(2292) 评论(0) 推荐(0) 编辑
摘要: 在vs2013的默认安装目录1、CS类修改方式在C:\ProgramFiles(x86)\MicrosoftVisualStudio12.0\Common7\IDE\ItemTemplatesCache\CSharp\Code\2052\Class下修改Class.cs类在全上方加上/*******... 阅读全文
posted @ 2015-04-18 16:31 东少 阅读(706) 评论(0) 推荐(0) 编辑
摘要: 设置跳转页无动画效果data-transition="none" 阅读全文
posted @ 2014-12-02 23:10 东少 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 最近用jqueryMobile 被这个问题卡了一下为了实现在移动设备上的无缝客户体验,jQuery Mobile默认采用AJAX的方式载入一个目的链接页面。因此,当在浏览器中点击一个链接打一个新的页面时,jQuery Mobile接收这个链接,通过AJAX的方式请求链接页面,并把请求得到的内容注入到... 阅读全文
posted @ 2014-11-21 11:58 东少 阅读(276) 评论(0) 推荐(0) 编辑
摘要: 错误原因,在使用ado.net entity的时候,entity使用的数据库是sqlserver 2008,但后来实际使用中使用的数据库是sqlserver 2005,使用的 SQL Server 版本不支持数据类型“datetime2”The version of SQL Server in us... 阅读全文
posted @ 2014-10-09 17:05 东少 阅读(942) 评论(0) 推荐(0) 编辑
摘要: 1 public string[] StringSplit(string strSource, string strSplit) 2 { 3 string[] strtmp = new string[1]; int index = strSource.IndexOf(strSplit, 0); 4 if (index < 0) { strtmp[0] = strSource; return strtmp; } 5 else 6 { 7 strtmp[... 阅读全文
posted @ 2013-05-29 21:49 东少 阅读(192) 评论(0) 推荐(0) 编辑