2020年3月25日
摘要:
执行 ALTER DATABASE SCOPED CONFIGURATION
阅读全文
posted @ 2020-03-25 11:59
JioNote
阅读(241)
推荐(0)
摘要:
1.尝试检查一下数据库中是否存在该表,表的字段跟实体是否对应
阅读全文
posted @ 2020-03-25 11:51
JioNote
阅读(1883)
推荐(0)
2020年3月24日
摘要:
1. function isUndefinedOrNull(obj){ return typeof obj 'undefined' || obj null; } function isNullOrWhiteSpace(obj){ return typeof obj 'undefined' || ob
阅读全文
posted @ 2020-03-24 18:14
JioNote
阅读(139)
推荐(0)
2020年3月23日
摘要:
1. #region 日期处理函数 /// <summary> /// 计算本周的周一日期 /// </summary> /// <returns></returns> private static DateTime GetMondayDate() { return GetMondayDate(Da
阅读全文
posted @ 2020-03-23 11:38
JioNote
阅读(142)
推荐(0)
2020年3月19日
摘要:
1.Stream转byte[],注意设置当前流的位置为流的开始 Stream saveStream = new MemoryStream(); doc.SaveToStream(saveStream, FileFormat.Auto); // 设置当前流的位置为流的开始 saveStream.See
阅读全文
posted @ 2020-03-19 17:46
JioNote
阅读(478)
推荐(0)
摘要:
使用Math.Round实现预期的四舍五入?C#中的Math.Round提供了非常多的重载方法,其中有两个重载方法是, public static double Round (double value,int digits,MidpointRounding mode); public static
阅读全文
posted @ 2020-03-19 16:15
JioNote
阅读(211)
推荐(0)
2020年1月18日
摘要:
效果图: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>重写alert弹窗</title> </head> <body> <script> // window.alert = alert; // function alert(
阅读全文
posted @ 2020-01-18 17:21
JioNote
阅读(162)
推荐(0)
摘要:
1.如需修改宽高,直接修改js里面的宽度、高度初始值即可 效果图: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>轮播图</title> <style> * { margin: 0; padding: 0; } a { tex
阅读全文
posted @ 2020-01-18 17:19
JioNote
阅读(123)
推荐(0)
2020年1月7日
摘要:
var url = path + "?id=" +1 + "&outsideParams=param1=" + Entity.param1 + "$param2=" +Entity.param2; public ActionResult ActionName(int id, string outsi
阅读全文
posted @ 2020-01-07 14:35
JioNote
阅读(105)
推荐(0)
2020年1月6日
摘要:
/// <summary> /// 替换换行符 /// </summary> /// <param name="str"></param> /// <returns></returns> public string ReplaceToHTML(string str) { if (string.IsN
阅读全文
posted @ 2020-01-06 14:31
JioNote
阅读(146)
推荐(0)