摘要: jQuery.ajaxSettings.traditional = true; $.post("",function(){}); 阅读全文
posted @ 2018-07-19 09:35 超级驼鹿 阅读(548) 评论(0) 推荐(0)
摘要: 例一:要求:查询是否存在名字为“张三”的学生。 例二:要求:查询教过“张三”或“李四”的老师。 在导航属性里面使用count和使用any性能区别不大,反而FirstOrDefault() != null的方式性能最差。 在直接属性判断里面any和FirstOrDefault() != null性能区 阅读全文
posted @ 2018-07-12 14:52 超级驼鹿 阅读(3508) 评论(0) 推荐(0)
摘要: public ActionResult uploadPhos(HttpPostedFileBase files) //多图片上传 { if (!Directory.Exists(AppDomain.CurrentDomain.BaseDirectory + @"\Uploads")) //判断文件夹 阅读全文
posted @ 2018-07-11 16:12 超级驼鹿 阅读(441) 评论(0) 推荐(0)
摘要: 1.View <button type="button" class="layui-btn" id="test"></button> <h3>预览</h3> <img id ="img" src=""> 2.Js <script> $(function () { layui.use('upload' 阅读全文
posted @ 2018-07-11 16:01 超级驼鹿 阅读(462) 评论(0) 推荐(0)
摘要: 1)转换日期格式为DateTime类型 DateTime dtToday = Convert.ToDateTime(DateTime.Now.ToString("yyyy-MM-dd"));//今天 DateTime dtNexDay = Convert.ToDateTime(DateTime.No 阅读全文
posted @ 2018-06-28 17:43 超级驼鹿 阅读(2941) 评论(0) 推荐(0)
/*