摘要: 注:此处获取文档页数不可用以下方法获取,因为它表示的页数是指页面视图的页大小,并不是页面视图的页大小。 Word.WdStatistic stat = Word.WdStatistic.wdStatisticPages; file_pages = doc.ComputeStatistics(stat 阅读全文
posted @ 2016-04-17 22:05 徐航 阅读(445) 评论(0) 推荐(0) 编辑
摘要: 方法一:采用乘除(未考虑除0溢出等问题) var a=2,b=3; console.log("a="+a) console.log("b="+b) a=a*b; b=a/b; a=a/b; console.log("a="+a) console.log("b="+b) 方法二:采用加减 var a= 阅读全文
posted @ 2016-04-17 22:03 徐航 阅读(259) 评论(0) 推荐(0) 编辑
摘要: 一、通过Http请求(不通过过滤器) public static UserDTO GetAuthInfo() { var cur = HttpContext.Current; var account= cur.Request.Headers.GetValues(Consts.HTTP_HEADER_ 阅读全文
posted @ 2016-02-21 15:49 徐航 阅读(854) 评论(0) 推荐(0) 编辑
摘要: public class WebApiControllerSelector : IHttpControllerSelector { private const string NamespaceKey = "namespace"; private const string ControllerKey 阅读全文
posted @ 2016-02-21 15:31 徐航 阅读(1595) 评论(0) 推荐(0) 编辑
摘要: public class OfficeHelper { /// <summary> /// word转成html /// </summary> /// <param name="path"></param> public static string WordToHtml(string path) { 阅读全文
posted @ 2016-02-21 15:25 徐航 阅读(1166) 评论(0) 推荐(0) 编辑
摘要: public static class PageHelper { /// <summary> /// 按页码分页 /// </summary> /// <param name="objects">要分页的数据集合</param> /// <param name="pageIndex">页码</par 阅读全文
posted @ 2016-02-21 15:23 徐航 阅读(861) 评论(0) 推荐(0) 编辑
摘要: public class ImageHelper { /// <summary> /// 图片转换成字节流 /// </summary> /// <param name="img">要转换的Image对象</param> /// <returns>转换后返回的字节流</returns> public 阅读全文
posted @ 2016-02-21 15:19 徐航 阅读(1278) 评论(0) 推荐(1) 编辑
摘要: public class JPushClient:BaseHttpClient { private String appKey; private String masterSecret; public JPushClient() { this.appKey = BaseHelper.GetValue 阅读全文
posted @ 2016-02-21 15:18 徐航 阅读(1299) 评论(0) 推荐(0) 编辑
摘要: public class RcHttpClient:BaseHttpClient { private String appKey; private String appSecret; public RcHttpClient() { this.appKey = BaseHelper.GetValue( 阅读全文
posted @ 2016-02-21 15:16 徐航 阅读(1861) 评论(0) 推荐(0) 编辑
摘要: public class IpHttpClient:BaseHttpClient { private String appKey; private const string HOST_PATH = "http://apis.baidu.com/apistore/iplookupservice/ipl 阅读全文
posted @ 2016-02-21 15:13 徐航 阅读(1400) 评论(0) 推荐(0) 编辑