摘要: if (typeof jQuery == 'undefined') { alert("请先导入jQuery");} else { jQuery.extend({ quan_fan: quan_fan });}function quan_fan(all, other) { /// /// 全选... 阅读全文
posted @ 2015-09-25 19:40 小小高 阅读(527) 评论(1) 推荐(2)
摘要: 往新建项目里加入一个自定义模板。。。。把你常用的一样东西封装进去。直接通过建项目的方式。生成该多爽。。首先选择导出模板。。。。选择好项目,然后下一步。完成。。就生成了项目模板。。。vs2013默认的网站模板目录在 C:\Users\Administrator\Documents\Visual Stu... 阅读全文
posted @ 2015-09-21 10:53 小小高 阅读(1396) 评论(2) 推荐(1)
摘要: 后台代码 public ActionResult Edit(my m)//my实体类 { testEntities t = new testEntities();//数据库上下文 t.my.Attach(m);//my数据库中的表 ... 阅读全文
posted @ 2015-09-18 09:29 小小高 阅读(929) 评论(0) 推荐(1)
摘要: 前台:mvc后台生成验证码,可指定位数刷新后台: public ActionResult yzm() { return View(); } /// /// 创建验证码的图片 /// //... 阅读全文
posted @ 2015-09-17 16:27 小小高 阅读(1270) 评论(0) 推荐(4)
摘要: 前台:下载下载后台: public ActionResult download() { return File(new FileStream(Server.MapPath("/upload/20150917145429221.png"), FileMode.Ope... 阅读全文
posted @ 2015-09-17 16:06 小小高 阅读(479) 评论(0) 推荐(2)
摘要: 后台代码: public ActionResult upload() { //获取文件对象 var file = Request.Files[0]; string suffix/*文件格式*/ = System.IO.P... 阅读全文
posted @ 2015-09-17 15:45 小小高 阅读(507) 评论(0) 推荐(3)
摘要: 直接上代码吧。。。 var i=0; var time; function test(str) { i++; document.getElementById('tgb').contentWindow.document.getElementById('veditor1_Iframe').content 阅读全文
posted @ 2015-09-12 21:04 小小高 阅读(1249) 评论(1) 推荐(1)
摘要: public class TimeoutAttribute : ActionFilterAttribute { public override void OnActionExecuting(ActionExecutingContext filterContext) { HttpContextBase 阅读全文
posted @ 2015-08-28 17:47 小小高 阅读(798) 评论(0) 推荐(1)
摘要: 前台代码: 姓名 年龄 ... 阅读全文
posted @ 2015-08-28 11:58 小小高 阅读(1647) 评论(0) 推荐(2)
摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using NPOI.SS.UserModel; 6 using NPOI.XSSF.User... 阅读全文
posted @ 2015-08-28 11:16 小小高 阅读(1282) 评论(0) 推荐(1)