睡到⑩②點
专注于ASP.NET Ajax
摘要: 下面是我整理的一些userAgent大家先看看格式 //Firefox 1.0.X Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0 Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050225 Firefox/1.0.1 Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4 Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6 Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7 阅读全文
posted @ 2007-04-24 15:11 睡到⑩②點 阅读(6885) 评论(0) 推荐(0) 编辑
摘要: JavaScript数组最多可以存放4294967295个项,如果要添加更多的项,则会发生异常。 Array对象覆盖了toString()方法和valueOf方法,返回特殊的字符串。 var aColors = ["red","green","blue"]; alert(aColors.toString());//输出red,green,blue alert(aColors.valueOf());//输出red,green,blue toLocaleString()方法的返回值也是由数组构成的字符串。 var aColors = ["red","green","blue"]; alert(aColors.toLocaleString());//输出red, green, blue大多数情况下toLocaleString()方法的输出值都与toString()方法的输出值相同,这里的输出值多了两个空格(在green和blue的前面各有一个),在IE6和FF都试过了,把语言区域和Internet语言首选 阅读全文
posted @ 2007-04-14 14:14 睡到⑩②點 阅读(1069) 评论(1) 推荐(0) 编辑
摘要: .net中RegisterStartupScript与RegisterClientScriptBlock的区别 RegisterStartupScript(key, script) RegisterClientScriptBlock(key, script) 这两个方法的作用都是从前台向后台写脚本,且都接受两个字符串作为输入。第二个参数 script 是要插入到页面中的客户端脚本,包括... 阅读全文
posted @ 2007-04-14 14:07 睡到⑩②點 阅读(635) 评论(0) 推荐(0) 编辑
摘要: 当调整控件的多个属性时,将先后使用 SuspendLayout 和 ResumeLayout 方法取消多个 Layout 事件。例如,通常先调用 SuspendLayout 方法,然后设置控件的 Size、Location、Anchor 或 Dock 属性,最后调用 ResumeLayout 方法以使更改生效。 private void AddButtons(){ // Suspend the... 阅读全文
posted @ 2007-04-14 14:04 睡到⑩②點 阅读(1081) 评论(0) 推荐(0) 编辑
摘要: onkeypress="if (event.keyCode 57) event.returnValue = false;"-------------------------------在文本框的 onkeypress事件中加入以上代码,屏蔽键盘事件中,输入值不是数字则返回为false 阅读全文
posted @ 2007-04-14 14:02 睡到⑩②點 阅读(538) 评论(0) 推荐(0) 编辑
摘要: /// /// 计算程序的运行时间 /// class StopWatch { private int mintStart; public void start() { mintStart = Environment.TickCount; } public long elapsed() { return Environment.TickCount - ... 阅读全文
posted @ 2007-04-14 13:40 睡到⑩②點 阅读(6587) 评论(4) 推荐(0) 编辑