摘要: //只能输入数字 $(".int").attr("onkeyup", "this.value=this.value.replace(/[^\\\d]/g,'')"); $(".int").attr("onkeypress", "onlyNumber(event);"); $(".int").attr 阅读全文
posted @ 2017-10-20 16:36 果宝一根葱 阅读(210) 评论(0) 推荐(0) 编辑
摘要: //获取系统当前时间 var now = new Date(); //当前日期 var nowDayOfWeek = now.getDay(); //今天本周的第几天 var nowDay = now.getDate(); //当前日 var nowMonth = now.getMonth(); / 阅读全文
posted @ 2017-10-20 16:33 果宝一根葱 阅读(491) 评论(0) 推荐(0) 编辑
摘要: DateTime dt = DateTime.Now; DateTime startWeek = dt.AddDays(1 - Convert.ToInt32(dt.DayOfWeek.ToString("d"))); var count =0;//自己定义的变量 循环 System.Globali 阅读全文
posted @ 2017-10-20 16:31 果宝一根葱 阅读(231) 评论(0) 推荐(0) 编辑
摘要: DateTime dt = DateTime.Now; //获取系统当前时间 DateTime startWeek = dt.AddDays(1 - Convert.ToInt32(dt.DayOfWeek.ToString("d"))); //获取一周的开始日期 DateTime endweek 阅读全文
posted @ 2017-10-20 16:28 果宝一根葱 阅读(1142) 评论(0) 推荐(1) 编辑
摘要: name —— 按钮名称 callback —— 按下后执行的函数 focus —— 是否聚焦点 disabled —— 是否标记按钮为不可用状态(后续可使用扩展方法让其恢复可用状态) 示例: 扩展方法 name —— 按钮名称 callback —— 按下后执行的函数 focus —— 是否聚焦点 阅读全文
posted @ 2017-10-20 16:22 果宝一根葱 阅读(878) 评论(0) 推荐(0) 编辑