01 2016 档案
摘要:示例2 成功状态 警告状态 错误状态 最后生成的效果
阅读全文
摘要:一、核心方法:laydate(options); options是一个对象,它包含了以下key: '默认值' elem: '#id', //需显示日期的元素选择器 event: 'click', //触发事件 format: 'YYYY-MM-DD h...
阅读全文
摘要:使用方法3个简单步骤对于其他API调用,看到演示。//显示一个信息没有标题toastr.info('Are you the 6 fingered man?')其他选项/显示一个警告,没有标题toastr.warning('My name is Inigo Montoya. You killed my...
阅读全文
摘要://检查金钱格式 $(".text_money").on("blur", function () { $(this).val($.isNumeric($(this).val()) ? $(this).val() : 0); }); ...
阅读全文
摘要://检查金钱格式 $(".text_money").on("blur", function () { checkMoney($(this)); }); //检查金钱格式 function checkMoney(text) ...
阅读全文
摘要://在使用参数形式时 需要这样连接字符串return String.Format("and {0} like '%'+@{0}+'%' ", par);SELECT * FROM PersonsWHERE City LIKE '%lon%'SELECT * FROM PersonsWHERE ...
阅读全文
摘要://初始化 标签 文本 initLabeltext(); //添加 标签类型 $(".a_type").on("click", function () { changeLabeltext($(this)); ...
阅读全文
摘要:1 /// 2 /// DAL基类 3 /// 4 /// 5 public abstract class BaseDAL where T : class, new() 6 { 7 /// 8 /...
阅读全文
摘要:1 /// 2 /// 分页字符串帮助类 3 /// 4 public static class PageStrHelper 5 { 6 /// 7 /// 获取分页字符串 8 /// ...
阅读全文
摘要:public class SQLHelperNew { //连接字符串 private static readonly string ConnStr = System.Configuration.ConfigurationManager.ConnectionSt...
阅读全文
摘要://上传文件 function changfile(obj, imgid) { var fileName = $(obj).val(); if (fileName.indexOf("\\") != -1) fileName = fileName.substring...
阅读全文
摘要:Type type = obj.GetType();//获取类的类型 MethodInfo[] infos = type.GetMethods(); List attrList = new List(); fore...
阅读全文
摘要://删除图片与数据 $(document).on('click', '.outer', function () { DeleteImg($(this)); });
阅读全文
摘要://string imgname = Path.GetFileName(imgpic); //返回的是文件名与后缀名 3.png //string imgname = Path.GetDirectoryName(imgp...
阅读全文
摘要:Num=3Price=11.50(Number(Price*Num)).toFixed(2)=34.50为动态元素添加点击事件的 方法 //为动态元素添加点击事件的 方法 $(document).on("click", ".check-access", function () { ...
阅读全文
摘要:方法主要有三种转换函数、强制类型转换、利用js变量弱类型转换。1. 转换函数:js提供了parseInt()和parseFloat()两个转换函数。前者把值转换成整数,后者把值转换成浮点数。只有对String类型调用这些方法,这两个函数才能正确运行;对其他类型返回的都是NaN(Not a Numbe...
阅读全文
摘要:C#中的日期处理函数 //2007年4月24日 this.TextBox6.Text = System.DateTime.Now.ToString("D"); //2007-4-24 this.TextBox7.Text = System.DateTime.Now.T...
阅读全文
摘要:1 public override System.Linq.Expressions.Expression> GetWhereLambda(I_Position_Access t) 2 { 3 ParameterExpression parame...
阅读全文
摘要:using DAL;using Models;using System.Web.SessionState;namespace cleaner.ashx{ /// /// $codebehindclassname$ 的摘要说明 /// [WebService(Namespa...
阅读全文
摘要:string msg = context.Request["msg"]; JavaScriptSerializer js = new JavaScriptSerializer(); Dictionary dic = new Dictionary() ...
阅读全文