09 2015 档案

摘要:if (typeof jQuery == 'undefined') { alert("请先导入jQuery");} else { jQuery.extend({ quan_fan: quan_fan });}function quan_fan(all, other) { /// /// 全选... 阅读全文
posted @ 2015-09-25 19:40 小小高 阅读(520) 评论(1) 推荐(2) 编辑
摘要:往新建项目里加入一个自定义模板。。。。把你常用的一样东西封装进去。直接通过建项目的方式。生成该多爽。。首先选择导出模板。。。。选择好项目,然后下一步。完成。。就生成了项目模板。。。vs2013默认的网站模板目录在 C:\Users\Administrator\Documents\Visual Stu... 阅读全文
posted @ 2015-09-21 10:53 小小高 阅读(1389) 评论(2) 推荐(1) 编辑
摘要:后台代码 public ActionResult Edit(my m)//my实体类 { testEntities t = new testEntities();//数据库上下文 t.my.Attach(m);//my数据库中的表 ... 阅读全文
posted @ 2015-09-18 09:29 小小高 阅读(922) 评论(0) 推荐(1) 编辑
摘要:前台:mvc后台生成验证码,可指定位数刷新后台: public ActionResult yzm() { return View(); } /// /// 创建验证码的图片 /// //... 阅读全文
posted @ 2015-09-17 16:27 小小高 阅读(1265) 评论(0) 推荐(4) 编辑
摘要:前台:下载下载后台: public ActionResult download() { return File(new FileStream(Server.MapPath("/upload/20150917145429221.png"), FileMode.Ope... 阅读全文
posted @ 2015-09-17 16:06 小小高 阅读(474) 评论(0) 推荐(2) 编辑
摘要:后台代码: public ActionResult upload() { //获取文件对象 var file = Request.Files[0]; string suffix/*文件格式*/ = System.IO.P... 阅读全文
posted @ 2015-09-17 15:45 小小高 阅读(501) 评论(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 小小高 阅读(1244) 评论(1) 推荐(1) 编辑

点击右上角即可分享
微信分享提示