11 2018 档案

摘要:使用Echars绑定图表的click事件后,发现click事件重复触发了二次。 解决办法:在绑定事件之前关闭chart的click。 off方法文档: 阅读全文
posted @ 2018-11-27 10:36 _York 阅读(601) 评论(0) 推荐(0) 编辑
摘要:using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; using System.Text; using System.Web; using NPOI; using NPOI.HPSF; using NPOI.HSSF.UserMode... 阅读全文
posted @ 2018-11-22 11:51 _York 阅读(709) 评论(0) 推荐(0) 编辑
摘要:string path = Application.StartupPath; SetAutoRun(path + @"\AppName.exe", true); /// /// 设置应用程序开机自动运行 /// /// 应用程序的文件名 /// 是否自动运行,为false时,取消自动运行 ... 阅读全文
posted @ 2018-11-16 10:41 _York 阅读(394) 评论(0) 推荐(0) 编辑
摘要:public class FtpUtil { string ftpServerIP; string ftpRemotePath; string ftpUserID; string ftpPassword; string ftpURI; /// /// 连接FTP ... 阅读全文
posted @ 2018-11-16 09:43 _York 阅读(165) 评论(2) 推荐(0) 编辑
摘要:/// /// sqlserver备份 /// public class SqlserverBack : IBack { private string backPath = string.Empty; public SqlserverBack() { backPath = Configu... 阅读全文
posted @ 2018-11-16 09:42 _York 阅读(205) 评论(0) 推荐(0) 编辑
摘要:1、在项目里面使用了axios.js来发送http请求,在IE下报错Promise未定义,解决办法: 到http://bluebirdjs.com/docs/getting-started.html 下载 bluebird.min.js脚本加入页面,解决Promise未定义的错误 2、IE11不支持 阅读全文
posted @ 2018-11-14 14:43 _York 阅读(24048) 评论(4) 推荐(0) 编辑
摘要:NLog写文件记录日志 阅读全文
posted @ 2018-11-13 16:51 _York 阅读(459) 评论(0) 推荐(0) 编辑
摘要:Json.net默认的时间格式化后带T,不符合一般的业务要求,重新设置JSON.NET的默认日期格式化方式,代码如下: 阅读全文
posted @ 2018-11-11 14:21 _York 阅读(1621) 评论(2) 推荐(0) 编辑
摘要:List<T> 当T为值类型的时候 去重比较简单,当T为引用类型时,一般根据业务需要,根据T的中几个属性来确定是否重复,从而去重。 查看System.Linq下的Enumerable存在一个去重方法 通过实现IEqualityComparer<T>比较器来实现对象的比较。 IEqualityComp 阅读全文
posted @ 2018-11-02 09:50 _York 阅读(2528) 评论(4) 推荐(1) 编辑
摘要:在进行地图开发过程中,一般能接触到以下三种类型的地图坐标系: 1.WGS-84原始坐标系,一般用国际GPS纪录仪记录下来的经纬度,通过GPS定位拿到的原始经纬度,Google和高德地图定位的的经纬度(国外)都是基于WGS-84坐标系的;但是在国内是不允许直接用WGS84坐标系标注的,必须经过加密后才 阅读全文
posted @ 2018-11-02 09:43 _York 阅读(4321) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示