搜索
cjc · 共 847 篇文章
Visual Studio 2008 每日提示(二十二)
<script>function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no…
2009-01-06 00:59 · 评论(0)
Visual Studio 2008 每日提示(二十一)
<script>function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no…
2009-01-05 00:52 · 评论(0)
Visual Studio 2008 每日提示(二十)
<script>function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no…
2009-01-04 00:31 · 评论(0)
不同浏览器对于textarea中换行符的处理
不同浏览器对于textarea中换行符的处理 今天在做一些表单提交,涉及到textarea中的换行,因为填入的内容是Base64编码之后的结果(规范规定,Base64编码结果中每76个字符需要加上一个回车换行,即一个"\r\n"),在IE下测试,一切OK,但是到了Firefox和谷歌浏览器下,总是提示错误,细查一下,发现不同浏览器对于换行符处理不同造成的。 在IE下,换行符传入\r\n 在Firefox和谷歌浏览器下,换行符只传入了\n 因为后台程序默认是按照\r\n处理的,所以字符串就不匹配了。 解决办法:如果发现传入的字符串只有\n,没有\r\n,则用正则表达式将\n替换成\r\n,然后…
2009-01-03 22:10 · 评论(0)
Base64编码简介及在java中的使用
Base64编码简介及在java中的使用 Base64是大家经常使用的编码方式,最早是为了发送邮件附件而产生的,今天解决了一个Base64解码的错误,就趁机稍微总结一下吧。 原理 Base64编码把3个8位字节(3*8=24)转化为4个6位字节(4*6=24),之后在6位的前面补两个0,形成8位一个字节的格式。 例如:字符串"123","1"对应的ASCII码为49,"2"对应的ASCII码为50,"3"对应的ASCII码为51,如下: 00110001 00110010 00110011 将以上24个字节分成4组,每组6个字节,如: 00110001 00110010 00110011 然…
2009-01-02 23:13 · 评论(0)
Visual Studio 2008 每日提示(十九)
<script>function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no…
2008-12-31 00:39 · 评论(0)
管道的故事
管道的故事 周末读完了《管道的故事》,虽然这是一本理财方面的书籍,但是书中的一些观点还是值的我们深思,有点感触,记录一下。 很多年前,意大利中部的一个小山谷,有二位名叫柏波罗和布鲁诺的年轻人,他们是堂兄弟,雄心勃勃,渴望有一天通过某种途径成为村里最富有的人。 一天, 机会来了,村里决定雇两个人把附近河里的水运到村广场的水缸里去。这份工作交给了柏波罗和布鲁诺。两个人都抓起两只水桶奔向河边。一天结束后,他们把镇 上的水缸都装满了。村里的长辈按每桶一分钱的价钱付钱给他们。布鲁诺很开心,认为找到了金饭碗,但是柏波罗却高兴不起来,提一天水下来,他的背又酸又痛,提那重重的大桶的手也起了泡,他想找到更好的…
2008-12-30 23:04 · 评论(0)
Visual Studio 2008 每日提示(十七)
<script>function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no…
2008-12-30 00:40 · 评论(0)
Visual Studio 2008 每日提示(十八)
<script>function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no…
2008-12-29 09:10 · 评论(0)
OpenJWeb快速开发平台数据库设计(一)(Oracle)
/** TABLE_NO:0010 * TABLE_NAME:序列号信息表(COMM_CONFIG) * TABLE DESC:为保证序列号生成与数据库无关,本系统单独建表存储不同序列号的当前值。本表只存储一条记录 * AUTHOR:王保政 * DATE:2008-12-18 **/ CREATE TABLE COMM_CONFIG -- 序列号信息表 ( ROW_ID VARCHAR2(40) NOT NULL ENABLE PRIMARY KEY, --记录唯一ID,此ID值在记录生成后不做修改 NEXT_SEQ NUMBER DEFAULT 1 NOT NULL --下一序列值 ); …
2008-12-28 14:36 · 评论(0)
Visual Studio 2008 每日提示(十六)
<script>function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no…
2008-12-26 02:28 · 评论(0)
Visual Studio 2008 每日提示(十五)
<script>function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no…
2008-12-25 00:48 · 评论(0)
Visual Studio 2008 每日提示(十四)
<script>function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no…
2008-12-24 09:16 · 评论(0)
Visual Studio 2008 每日提示(十三)
<script>function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no…
2008-12-23 01:48 · 评论(0)
Visual Studio 2008 每日提示(十二)
<script>function StorePage(){d=document;t=d.selection?(d.selection.type!='None'?d.selection.createRange().text:''):(d.getSelection?d.getSelection():'');void(keyit=window.open('http://www.365key.com/storeit.aspx?t='+escape(d.title)+'&u='+escape(d.location.href)+'&c='+escape(t),'keyit','scrollbars=no…
2008-12-22 02:06 · 评论(0)