08 2010 档案

摘要:C# 集合类 Array Arraylist List Hashtable Dictionary Stack Queue 1.数组是固定大小的,不能伸缩。虽然System.Array.Resize这个泛型方法可以重置数组大小, 但是该方法是重新创建新设置大小的数组,用的是旧数组的元素初始化。随后以前的数组就废弃!而集合却是可变长的 2.数组要声明元素的类型,集合类的元素类型却是object. 3.... 阅读全文
posted @ 2010-08-31 09:17 94cool 阅读(335) 评论(0) 推荐(0) 编辑
摘要:一 原理区别 一般在浏览器中输入网址访问资源都是通过GET方式;在FORM提交中,可以通过Method指定提交方式为GET或者POST,默认为GET提交Http定义了与服务器交互的不同方法,最基本的方法有4种,分别是GET,POST,PUT,DELETE URL全称是资源描述符,我们可以这样认为:一个URL地址,它用于描述一个网络上的资源,而HTTP中的GET,POST,PUT,DELETE就对... 阅读全文
posted @ 2010-08-29 19:39 94cool 编辑
摘要:JavaScript中有三个可以对字符串编码的函数,分别是: escape,encodeURI,encodeURIComponent,相应3个解码函数:unescape,decodeURI,decodeURIComponent 。 下面简单介绍一下它们的区别 1 escape()函数 定义和用法 escape() 函数可对字符串进行编码,这样就可以在所有的计算机上读取该字符串。 语法 escape... 阅读全文
posted @ 2010-08-29 19:39 94cool 编辑
摘要:一般情况下,使用Ajax提交的参数多是些简单的字符串,可以直接使用GET方法将要提交的参数写到open方法的url参数中,此时send方法的参数为null。 例如 : var url = "login.jsp?user=XXX&pwd=XXX"; xmlHttpRequest.open("GET",url,true); xmlHttpRequset.send(null); 此外,也可以使用... 阅读全文
posted @ 2010-08-29 17:27 94cool 编辑
摘要:下一条:select top 1 * from abc where id>555 order by id asc 上一条:select top 1 * from abc where id <555 order by id desc 阅读全文
posted @ 2010-08-29 11:07 94cool 编辑
摘要:if(!/^[0-9]+.[0-9]{0,2}$/.test(txtprice.value)) { alert("价格必须是数字,如有小数,保持两位!"); txtprice.focus(); return false; } 阅读全文
posted @ 2010-08-20 17:38 94cool 阅读(192) 评论(0) 推荐(0) 编辑
摘要:Byte order: Little-endian 阅读全文
posted @ 2010-08-18 18:15 94cool 阅读(536) 评论(0) 推荐(0) 编辑
摘要:http://hi.baidu.com/24787716/blog/item/d54fdb2467c657328744f9b0.html 阅读全文
posted @ 2010-08-18 18:15 94cool 阅读(87) 评论(0) 推荐(0) 编辑
摘要:private void toexcel(string title) { try { Encoding encContent = Encoding.GetEncoding("utf-8"); int count = GridView1.Columns.Count; Response.Clear(); Response.ClearContent(); Response.ClearHeaders();... 阅读全文
posted @ 2010-08-09 17:35 94cool 阅读(221) 评论(0) 推荐(0) 编辑
摘要:private void toexcel(string title) { Response.Clear(); Response.Buffer = false; Response.Charset = "utf-8"; Response.AppendHeader("Content-Disposition", "attachment;filename=" + HttpUtility.UrlEncode(... 阅读全文
posted @ 2010-08-09 16:30 94cool 阅读(247) 评论(0) 推荐(0) 编辑
摘要:1. 简述 private、 protected、 public、 internal 修饰符的访问权限。答 . private : 私有成员, 在类的内部才可以访问。 protected : 保护成员,该类内部和继承类中可以访问。 public : 公共成员,完全公开,没有访问限制。 internal: 在同一命名空间内可以访问。2 .列举ASP.NET 页面之间传递值的几种方式。答. 1.使用Q... 阅读全文
posted @ 2010-08-04 21:54 94cool 编辑
摘要:输入正整数 n , 按从大到小的顺序输出所有形如 abcde/fghij = n 的表达式,其中a ~ j为0 ~ 9的数字(不可重复)。2 <= n <=79. 样例输入: 62 样例输出: 79546/01283 = 62 94736/01528 = 62 方法:以62为例private bool isRepeat(string val) { bool result = true;... 阅读全文
posted @ 2010-08-04 15:29 94cool 阅读(204) 评论(0) 推荐(0) 编辑
摘要:private bool isCan(string val) { bool result = true; foreach(char s in val) { if (new Regex(s.ToString()).Matches(val).Count > 1) { result = false; break; } } return result; } 阅读全文
posted @ 2010-08-04 15:06 94cool 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示