奔腾年代

但行好事,莫问前程。

导航

1 2 3 4 5 ··· 7 下一页

2014年9月24日

两系统用asp.net forms 身份验证方式实现跨域登录信息共享

摘要: 1.两个系统的 web.config 都配置为 forms 验证方式( system.web—>authentication 节点)2.在两个系统的Web.config里配置相同的 system.web —> machineKey 节点(节点生成:http://www.aspnetresources... 阅读全文

posted @ 2014-09-24 12:18 奔腾年代 阅读(357) 评论(0) 推荐(0) 编辑

2014年9月4日

Ajax跨域请求

摘要: 客户端前台://浏览器支持跨域访问,置于Ajax方法前$.support.cors = true;服务器后台://设置服务器端对于CORS的跨域请求支持,置于后台方法第一行 Response.AddHeader("Access-Control-Allow-Origin","*"... 阅读全文

posted @ 2014-09-04 18:45 奔腾年代 阅读(159) 评论(0) 推荐(0) 编辑

2014年8月7日

反转

摘要: /// /// 数组全部反转/// /// public static void ArrayReverse(int[] array){if (array == null){throw new ArgumentNullException("array", "array不能为null");}//算法1:... 阅读全文

posted @ 2014-08-07 10:08 奔腾年代 阅读(157) 评论(0) 推荐(0) 编辑

2013年11月12日

js复选框操作

摘要: $(".checkall").click(function () { if (this.checked) { $("input[name='isBuy']").each(function () { this.checked = true; }); } else { $("input[name='isBuy']").each(function () { this.checked = false; }); } }); 阅读全文

posted @ 2013-11-12 14:51 奔腾年代 阅读(137) 评论(0) 推荐(0) 编辑

2013年11月4日

清除ajax缓存

摘要: 加 cache: false 阅读全文

posted @ 2013-11-04 16:58 奔腾年代 阅读(116) 评论(0) 推荐(0) 编辑

判断一个元素是否有子节点

摘要: $(obj).children().length > 0 阅读全文

posted @ 2013-11-04 16:46 奔腾年代 阅读(452) 评论(0) 推荐(0) 编辑

js解决IE不支持数组的indexOf()方法

摘要: if (!Array.indexOf) { Array.indexOf = function (obj) { for (var i = 0; i < this.length; i++) { if (this[i] == obj) { return i; } } return -1; } } 阅读全文

posted @ 2013-11-04 16:44 奔腾年代 阅读(772) 评论(0) 推荐(0) 编辑

2013年11月1日

手机格式

摘要: !/^(13|15|18)[0-9]{9}$/.test($.trim($('#phoneTxt').val())) 阅读全文

posted @ 2013-11-01 16:11 奔腾年代 阅读(148) 评论(0) 推荐(0) 编辑

整数

摘要: if (!/^[0-9]+$/.test($.trim($('#addViewerSum').val()))) { alert('浏览次数格式为整数,请重新输入!'); $('#addViewerSum').focus(); } 阅读全文

posted @ 2013-11-01 15:03 奔腾年代 阅读(103) 评论(0) 推荐(0) 编辑

IP地址

摘要: if (!/^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])(\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])){3}$/.test($.trim($('#addIPAddress').val()))) { alert('IP地址格式不正确,请重新输入!'); $('#addIPAddress').focus(); } 阅读全文

posted @ 2013-11-01 15:02 奔腾年代 阅读(122) 评论(0) 推荐(0) 编辑

1 2 3 4 5 ··· 7 下一页