摘要: public ActionResult uploadPhos(HttpPostedFileBase files) //多图片上传 { if (!Directory.Exists(AppDomain.CurrentDomain.BaseDirectory + @"\Uploads")) //判断文件夹 阅读全文
posted @ 2018-07-11 16:12 超级驼鹿 阅读(415) 评论(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 超级驼鹿 阅读(441) 评论(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 超级驼鹿 阅读(2905) 评论(0) 推荐(0) 编辑
摘要: HTTP 即超文本传输协议,它规定了数据在网络中传输的格式, HTTP 在应用层将数据封装成固定的格式,然后再交由传输层去进行传输 一:网络由下往上 物理层 数据链路层 网络层 (ip协议) 传输层 (tcp协议) 会话层 表示层和应用层 (http协议) 二: Socket:tcp/ip协议的封装 阅读全文
posted @ 2018-06-22 14:18 超级驼鹿 阅读(289) 评论(0) 推荐(0) 编辑
摘要: 一:数组 1 push() 向数据尾部添加一个或者多个元素,并返回新元素后的数组长度 注意:该方法会改变原数组。 var arr = [1,2,3]; var b = arr.push(4); //当前数组长度为4 2 pop() 删除数组的最后一个元素,并返回该元素。 注意:该方法会改变元素组 v 阅读全文
posted @ 2018-06-04 11:20 超级驼鹿 阅读(564) 评论(0) 推荐(0) 编辑
/*