posts - 3, comments - 0, trackbacks - 0, articles - 2

11 2006 档案

摘要: 事件源对象 event.srcElement.tagName event.srcElement.type 捕获释放 event.srcElement.setCapture(); event.srcElement.releaseCapture(); 事件按键 event.keyCode event.shiftKey event.altKey event.ctrlKey 事件返回值 event.ret...阅读全文

posted @ 2006-11-11 12:19 暮松 阅读(284) | 评论 (0) 编辑 |

摘要: 说明:复制表(只复制结构,源表名:a 新表名:b) SQL: select * into b from a where 1<>1 说明:拷贝表(拷贝数据,源表名:a 目标表名:b) SQL: insert into b(a, b, c) select d,e,f from b; 说明:显示文章、提交人和最后回复时间 SQL: select a.title,a.username,b.ad...阅读全文

posted @ 2006-11-11 12:17 暮松 阅读(82) | 评论 (0) 编辑 |

摘要: 匹配中文字符的正则表达式: [\u4e00-\u9fa5] 匹配双字节字符(包括汉字在内):[^\x00-\xff] 应用:计算字符串的长度(一个双字节字符长度计2,ASCII字符计1) String.prototype.len=function(){return this.replace([^\x00-\xff]/g,"aa").length;} 匹配空行的正则表达式:\n[\s| ]*\r 匹...阅读全文

posted @ 2006-11-11 12:16 暮松 阅读(68) | 评论 (0) 编辑 |