摘要: // 处理时间 function NewDate(str) { str = str + ""; str = str.split('-'); var date = new Date(); date.setUTCFullYear(str[0], str[1] - 1, str[2]); date.set 阅读全文
posted @ 2017-10-09 18:43 亘古不变 阅读(706) 评论(0) 推荐(0) 编辑
摘要: var listItem = ""; $('#AddTable tr').each(function () { listItem += '{"pkid":"id","Code":"code","Name":"name"},'; }); var lists = { "list": "[" + list 阅读全文
posted @ 2017-10-09 18:41 亘古不变 阅读(3436) 评论(0) 推荐(0) 编辑
摘要: 通过 $("div.test").css("width","100px");和 $("div.test").css("width","100px !important");是无效的要想修改div的width,可以通过如下这种方式:$("div.test").css("cssText", "width 阅读全文
posted @ 2017-10-09 18:40 亘古不变 阅读(349) 评论(0) 推荐(0) 编辑
摘要: //全选/反选 $("#allSelect").click(function () { var isChecked = $(this).is(":checked"); $("input[name='selected_id']").each(function (k, v) { $(this).prop 阅读全文
posted @ 2017-10-09 18:38 亘古不变 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 1.方法一: function getUrlParam(name){var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象var r = window.location.search.substr(1).m 阅读全文
posted @ 2017-10-09 18:37 亘古不变 阅读(4738) 评论(0) 推荐(0) 编辑
摘要: #region 下载文件 /// <summary> /// 下载文件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> protected void download_Click(object 阅读全文
posted @ 2017-10-09 18:34 亘古不变 阅读(167) 评论(0) 推荐(0) 编辑
摘要: placeholder="请输入截至日期" 阅读全文
posted @ 2017-10-09 18:33 亘古不变 阅读(872) 评论(0) 推荐(0) 编辑
摘要: // 判断字符串长度,包含汉字 ASCIIEncoding n = new ASCIIEncoding(); byte[] b = n.GetBytes(CNABCode.Text); // l 为字符串之实际长度 int lenthCNABCode = 0; for (int i = 0; i < 阅读全文
posted @ 2017-10-09 18:31 亘古不变 阅读(488) 评论(0) 推荐(0) 编辑
摘要: <asp:Repeater ID="rptTitlelist" runat="server" OnItemDataBound="rptTitlelist_OnItemDataBound"> <ItemTemplate> <tr> <td colspan="2" class="tabledata" s 阅读全文
posted @ 2017-10-09 18:29 亘古不变 阅读(172) 评论(0) 推荐(0) 编辑
摘要: #region 根据身份证获取出生日期 /// <summary> /// 根据身份证获取出生日期 /// </summary> /// <param name="Card"></param> /// <returns></returns> private DateTime GetBirthDayB 阅读全文
posted @ 2017-10-09 18:28 亘古不变 阅读(295) 评论(0) 推荐(0) 编辑
摘要: public enum EnumAPPType{ 申请 = 0 变更 = 1,} // 设置值,和文本类型 Array array = Enum.GetValues(typeof(DTEnums.EnumAPPType)); if (array != null && array.Length > 0 阅读全文
posted @ 2017-10-09 18:26 亘古不变 阅读(259) 评论(0) 推荐(0) 编辑