摘要: 初学WPF,仅供参考 创建自定义控件: public class WriteMark : TextBox { static WriteMark() { DefaultStyleKeyProperty.OverrideMetadata(typeof(WriteMark), new FrameworkP 阅读全文
posted @ 2021-06-01 19:09 奇迹之耀 阅读(235) 评论(0) 推荐(0)
摘要: 打开IIS应用程序池,进入高级设置 进程模型->标识 修改为localSystem 阅读全文
posted @ 2021-06-01 11:27 奇迹之耀 阅读(157) 评论(0) 推荐(0)
摘要: window.addEventListener('pageshow', function (event) { if (event.persisted || window.performance && window.performance.navigation.type == 2) { locatio 阅读全文
posted @ 2021-06-01 11:16 奇迹之耀 阅读(269) 评论(0) 推荐(0)
摘要: 备忘,记录一下 添加一个异常过滤器 public class MyHandleErrorAttribute: HandleErrorAttribute { public override void OnException(ExceptionContext filterContext) { Excep 阅读全文
posted @ 2021-05-25 15:19 奇迹之耀 阅读(80) 评论(0) 推荐(0)
摘要: 原代码: from a in db.Files select new Files { Id = a.Id, FilePath = a.FilePath }).ToList(); 新代码: (from a in db.Files select new newFiles { Id = a.Id, Fil 阅读全文
posted @ 2021-05-21 19:01 奇迹之耀 阅读(82) 评论(0) 推荐(0)
摘要: 原代码: var para = new MySqlParameter() { ParameterName = "@p0", Value = UserName }; var result = db.Database.SqlQuery<int>(@"select count(id) from files 阅读全文
posted @ 2021-05-19 17:54 奇迹之耀 阅读(122) 评论(0) 推荐(0)
摘要: 备忘 开启日志记录: SET GLOBAL general_log = 'ON'; 将日志输出至系统表: SET GLOBAL log_output = 'TABLE' 查询: SELECT * from mysql.general_log ORDER BY event_time DESC 不用时记 阅读全文
posted @ 2021-05-19 16:31 奇迹之耀 阅读(124) 评论(0) 推荐(0)
摘要: 后台直接传来的时间是这样的 需要转换为标准时间格式 代码如下: 使用了layui数据表格的模板列 { field: 'RegistTime', title: '注册时间', templet: function (d) { return TimeFormat(d.RegistTime) } } fun 阅读全文
posted @ 2021-05-14 10:52 奇迹之耀 阅读(805) 评论(0) 推荐(0)
摘要: 我不知道官方的做法是什么,但是现在我这种方法可以解决问题.... html部分 <div carousel-item id="Line_Chart"> <div id="UserRegistChart"></div> </div> script部分 var dom = document.getEle 阅读全文
posted @ 2021-05-07 13:36 奇迹之耀 阅读(1256) 评论(0) 推荐(0)
摘要: 报错信息: There is already an open DataReader associated with this Connection which must be closed first System.InvalidOperationException: 意外的连接状态。在使用包装提供 阅读全文
posted @ 2021-04-23 14:05 奇迹之耀 阅读(451) 评论(0) 推荐(0)