摘要: WithdrawalsApplyDto dto = new WithdrawalsApplyDto(); IEnumerable<SelectListItem> selList2 = TxEnumHelper.EnumToListItem(typeof(WithdrawalsApplyDto.Sta 阅读全文
posted @ 2017-11-26 17:29 EndlessLearning 阅读(264) 评论(0) 推荐(0) 编辑
摘要: JQuery 中用 方法 jQuery.browser 来判断浏览器,返回值可以为: safari opera msie mozilla。 当然有时候我们还需要区分版本 这就要用到 jQuery.browser.version JQuery 源码 jQuery 使用的是通过正则来匹配userAgen 阅读全文
posted @ 2017-07-26 17:50 EndlessLearning 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 最简单获取当月第一天和最后一天 代码如下:DateTime now = DateTime.Now; DateTime dt1 = new DateTime(now.Year, now.Month, 1); DateTime dt2 = d1.AddMonths(1).AddDays(-1); dt1是本月的第一天,dt2本月的最后一天, 最后一天的算法是:得到本月的第一天然后增加一月,再减去一... 阅读全文
posted @ 2016-10-05 11:42 EndlessLearning 阅读(2150) 评论(0) 推荐(0) 编辑
摘要: //手机号码验证 var phone = $("#PhoneNum").value; var myreg = /^(((13[0-9]{1})|(15[0-9]{1})|(18[0-9]{1}))+\d{8})$/; if (!myreg.test(phone) && phone != "") { ... 阅读全文
posted @ 2016-09-29 11:45 EndlessLearning 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 方法如下: 1.int代表整形。 2.string 代表 字符型。 3.datetime ,日期类型判断如下 if(account.date!=Datetime.MinValue) { Str1.Append("date=' "+account.date+"', ")} 1 public ... 阅读全文
posted @ 2015-12-15 14:49 EndlessLearning 阅读(593) 评论(0) 推荐(0) 编辑
摘要: 1、在你的网页加载 PIE.js 脚本。注意,用IE专用的注释,防止非IE浏览器下载。2、用js 调用:$(function() { if (window.PIE) { $('.rounded').each(function() { PIE.attach(this); }); }});3、在你的cs... 阅读全文
posted @ 2015-12-03 18:16 EndlessLearning 阅读(257) 评论(0) 推荐(0) 编辑
摘要: 图片上传案例收藏 阅读全文
posted @ 2015-12-02 15:33 EndlessLearning 阅读(337) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2015-11-20 09:31 EndlessLearning 阅读(201) 评论(0) 推荐(0) 编辑
摘要: $(document).ready( function(){ $.extend($.fn.validatebox.defaults.rules, { minLength: { validator: function(value, param){ //value 为需要校验的输入框的值 , para... 阅读全文
posted @ 2014-12-09 15:23 EndlessLearning 阅读(173) 评论(0) 推荐(0) 编辑
摘要: field : 'startPort', title : "起始端口", editor: "text", width : 50, editor: { type: 'SuperValidatebox', options: { required: true, validType: ['int... 阅读全文
posted @ 2014-11-26 17:58 EndlessLearning 阅读(1713) 评论(0) 推荐(0) 编辑