摘要:
WithdrawalsApplyDto dto = new WithdrawalsApplyDto(); IEnumerable<SelectListItem> selList2 = TxEnumHelper.EnumToListItem(typeof(WithdrawalsApplyDto.Sta 阅读全文
摘要:
JQuery 中用 方法 jQuery.browser 来判断浏览器,返回值可以为: safari opera msie mozilla。 当然有时候我们还需要区分版本 这就要用到 jQuery.browser.version JQuery 源码 jQuery 使用的是通过正则来匹配userAgen 阅读全文
摘要:
最简单获取当月第一天和最后一天 代码如下:DateTime now = DateTime.Now; DateTime dt1 = new DateTime(now.Year, now.Month, 1); DateTime dt2 = d1.AddMonths(1).AddDays(-1); dt1是本月的第一天,dt2本月的最后一天, 最后一天的算法是:得到本月的第一天然后增加一月,再减去一... 阅读全文
摘要:
//手机号码验证 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 != "") { ... 阅读全文
摘要:
方法如下: 1.int代表整形。 2.string 代表 字符型。 3.datetime ,日期类型判断如下 if(account.date!=Datetime.MinValue) { Str1.Append("date=' "+account.date+"', ")} 1 public ... 阅读全文
摘要:
1、在你的网页加载 PIE.js 脚本。注意,用IE专用的注释,防止非IE浏览器下载。2、用js 调用:$(function() { if (window.PIE) { $('.rounded').each(function() { PIE.attach(this); }); }});3、在你的cs... 阅读全文
摘要:
图片上传案例收藏 阅读全文
摘要:
阅读全文
摘要:
$(document).ready( function(){ $.extend($.fn.validatebox.defaults.rules, { minLength: { validator: function(value, param){ //value 为需要校验的输入框的值 , para... 阅读全文
摘要:
field : 'startPort', title : "起始端口", editor: "text", width : 50, editor: { type: 'SuperValidatebox', options: { required: true, validType: ['int... 阅读全文