摘要: public class SQLHelperNew { //连接字符串 private static readonly string ConnStr = System.Configuration.ConfigurationManager.ConnectionSt... 阅读全文
posted @ 2016-01-11 14:54 肥大头 阅读(133) 评论(0) 推荐(0)
摘要: //上传文件 function changfile(obj, imgid) { var fileName = $(obj).val(); if (fileName.indexOf("\\") != -1) fileName = fileName.substring... 阅读全文
posted @ 2016-01-11 14:48 肥大头 阅读(179) 评论(0) 推荐(0)
摘要: Type type = obj.GetType();//获取类的类型 MethodInfo[] infos = type.GetMethods(); List attrList = new List(); fore... 阅读全文
posted @ 2016-01-09 22:49 肥大头 阅读(344) 评论(0) 推荐(0)
摘要: //删除图片与数据 $(document).on('click', '.outer', function () { DeleteImg($(this)); }); 阅读全文
posted @ 2016-01-08 17:44 肥大头 阅读(148) 评论(0) 推荐(0)
摘要: //string imgname = Path.GetFileName(imgpic); //返回的是文件名与后缀名 3.png //string imgname = Path.GetDirectoryName(imgp... 阅读全文
posted @ 2016-01-06 22:22 肥大头 阅读(220) 评论(0) 推荐(0)
摘要: Num=3Price=11.50(Number(Price*Num)).toFixed(2)=34.50为动态元素添加点击事件的 方法 //为动态元素添加点击事件的 方法 $(document).on("click", ".check-access", function () { ... 阅读全文
posted @ 2016-01-06 22:19 肥大头 阅读(589) 评论(0) 推荐(0)
摘要: 方法主要有三种转换函数、强制类型转换、利用js变量弱类型转换。1. 转换函数:js提供了parseInt()和parseFloat()两个转换函数。前者把值转换成整数,后者把值转换成浮点数。只有对String类型调用这些方法,这两个函数才能正确运行;对其他类型返回的都是NaN(Not a Numbe... 阅读全文
posted @ 2016-01-06 22:16 肥大头 阅读(588) 评论(0) 推荐(0)
摘要: C#中的日期处理函数 //2007年4月24日 this.TextBox6.Text = System.DateTime.Now.ToString("D"); //2007-4-24 this.TextBox7.Text = System.DateTime.Now.T... 阅读全文
posted @ 2016-01-06 21:42 肥大头 阅读(410) 评论(0) 推荐(0)
摘要: 1 public override System.Linq.Expressions.Expression> GetWhereLambda(I_Position_Access t) 2 { 3 ParameterExpression parame... 阅读全文
posted @ 2016-01-06 21:38 肥大头 阅读(224) 评论(0) 推荐(0)
摘要: using DAL;using Models;using System.Web.SessionState;namespace cleaner.ashx{ /// /// $codebehindclassname$ 的摘要说明 /// [WebService(Namespa... 阅读全文
posted @ 2016-01-05 11:27 肥大头 阅读(586) 评论(0) 推荐(0)
点击右上角即可分享
微信分享提示