01 2016 档案

摘要:示例2 成功状态 警告状态 错误状态 最后生成的效果 阅读全文
posted @ 2016-01-27 14:13 肥大头 阅读(1165) 评论(0) 推荐(0) 编辑
摘要:一、核心方法:laydate(options); options是一个对象,它包含了以下key: '默认值' elem: '#id', //需显示日期的元素选择器 event: 'click', //触发事件 format: 'YYYY-MM-DD h... 阅读全文
posted @ 2016-01-20 18:20 肥大头 阅读(9961) 评论(0) 推荐(0) 编辑
摘要:使用方法3个简单步骤对于其他API调用,看到演示。//显示一个信息没有标题toastr.info('Are you the 6 fingered man?')其他选项/显示一个警告,没有标题toastr.warning('My name is Inigo Montoya. You killed my... 阅读全文
posted @ 2016-01-19 18:16 肥大头 阅读(262) 评论(0) 推荐(0) 编辑
摘要://检查金钱格式 $(".text_money").on("blur", function () { $(this).val($.isNumeric($(this).val()) ? $(this).val() : 0); }); ... 阅读全文
posted @ 2016-01-19 17:43 肥大头 阅读(747) 评论(0) 推荐(0) 编辑
摘要://检查金钱格式 $(".text_money").on("blur", function () { checkMoney($(this)); }); //检查金钱格式 function checkMoney(text) ... 阅读全文
posted @ 2016-01-19 16:51 肥大头 阅读(308) 评论(0) 推荐(0) 编辑
摘要://在使用参数形式时 需要这样连接字符串return String.Format("and {0} like '%'+@{0}+'%' ", par);SELECT * FROM PersonsWHERE City LIKE '%lon%'SELECT * FROM PersonsWHERE ... 阅读全文
posted @ 2016-01-18 16:33 肥大头 阅读(1032) 评论(0) 推荐(0) 编辑
摘要://初始化 标签 文本 initLabeltext(); //添加 标签类型 $(".a_type").on("click", function () { changeLabeltext($(this)); ... 阅读全文
posted @ 2016-01-16 10:49 肥大头 阅读(211) 评论(0) 推荐(0) 编辑
摘要:Response.Write(""); 阅读全文
posted @ 2016-01-13 09:30 肥大头 阅读(306) 评论(0) 推荐(0) 编辑
摘要:1 /// 2 /// DAL基类 3 /// 4 /// 5 public abstract class BaseDAL where T : class, new() 6 { 7 /// 8 /... 阅读全文
posted @ 2016-01-11 14:59 肥大头 阅读(226) 评论(0) 推荐(0) 编辑
摘要:1 /// 2 /// 分页字符串帮助类 3 /// 4 public static class PageStrHelper 5 { 6 /// 7 /// 获取分页字符串 8 /// ... 阅读全文
posted @ 2016-01-11 14:56 肥大头 阅读(210) 评论(0) 推荐(0) 编辑
摘要:public class SQLHelperNew { //连接字符串 private static readonly string ConnStr = System.Configuration.ConfigurationManager.ConnectionSt... 阅读全文
posted @ 2016-01-11 14:54 肥大头 阅读(131) 评论(0) 推荐(0) 编辑
摘要://上传文件 function changfile(obj, imgid) { var fileName = $(obj).val(); if (fileName.indexOf("\\") != -1) fileName = fileName.substring... 阅读全文
posted @ 2016-01-11 14:48 肥大头 阅读(178) 评论(0) 推荐(0) 编辑
摘要:Type type = obj.GetType();//获取类的类型 MethodInfo[] infos = type.GetMethods(); List attrList = new List(); fore... 阅读全文
posted @ 2016-01-09 22:49 肥大头 阅读(342) 评论(0) 推荐(0) 编辑
摘要://删除图片与数据 $(document).on('click', '.outer', function () { DeleteImg($(this)); }); 阅读全文
posted @ 2016-01-08 17:44 肥大头 阅读(141) 评论(0) 推荐(0) 编辑
摘要://string imgname = Path.GetFileName(imgpic); //返回的是文件名与后缀名 3.png //string imgname = Path.GetDirectoryName(imgp... 阅读全文
posted @ 2016-01-06 22:22 肥大头 阅读(215) 评论(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 肥大头 阅读(585) 评论(0) 推荐(0) 编辑
摘要:方法主要有三种转换函数、强制类型转换、利用js变量弱类型转换。1. 转换函数:js提供了parseInt()和parseFloat()两个转换函数。前者把值转换成整数,后者把值转换成浮点数。只有对String类型调用这些方法,这两个函数才能正确运行;对其他类型返回的都是NaN(Not a Numbe... 阅读全文
posted @ 2016-01-06 22:16 肥大头 阅读(587) 评论(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 肥大头 阅读(409) 评论(0) 推荐(0) 编辑
摘要:1 public override System.Linq.Expressions.Expression> GetWhereLambda(I_Position_Access t) 2 { 3 ParameterExpression parame... 阅读全文
posted @ 2016-01-06 21:38 肥大头 阅读(223) 评论(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) 编辑
摘要:string msg = context.Request["msg"]; JavaScriptSerializer js = new JavaScriptSerializer(); Dictionary dic = new Dictionary() ... 阅读全文
posted @ 2016-01-04 22:48 肥大头 阅读(206) 评论(0) 推荐(0) 编辑

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