摘要: Firefox 得以快速发展的一个主要原因:可扩展性。众多优秀的扩展使其广受欢迎。下面是一个简单的实例:通过google Translate将一个英文网页翻译成中文网页。功能很简单:通过点击工具栏图标,或者菜单栏的工具下菜单,或者右键关联菜单实现翻译网页(英->中) 开发环境: (1) Netbeans有一个foxbeans插件,用于开发firefox扩展。该扩展提供了基本的向导。(2) 另... 阅读全文
posted @ 2010-01-10 20:52 Keosu 阅读(316) 评论(0) 推荐(0) 编辑
摘要: jQuery 中的 $ 代表 jQuery 宗旨 : write less , do more 功能 : (1)选择器(2)功能函数(3)解决windows.onload(): $(document).ready(function(){}); 缩写: $(function(){}); (4)创建DOM: var a = $(“<p>text</p>”... 阅读全文
posted @ 2010-01-08 09:34 Keosu 阅读(309) 评论(0) 推荐(0) 编辑
摘要: int fscanf( FILE *f, const char *format, ... ); int fprintf( FILE *f, const char *format, ... ); int sscanf ( char *buffer, const char *format, ... ); int sprintf( char *buffer, const char *format, ..... 阅读全文
posted @ 2009-12-31 19:40 Keosu 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 1.document.getElementById(id);2.document.getElementByTagName(tagName); 3.element.childNodes  --element.firstChild=element.childNodes[0];   --element.lastChild=element.childNodes[element.childNonts.len... 阅读全文
posted @ 2009-12-25 22:54 Keosu 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 1. 基本代码 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--importjava.io.IOException;importorg.apache.commons.httpclient.HttpClient;importorg.apache.comm... 阅读全文
posted @ 2009-11-29 20:24 Keosu 阅读(299) 评论(0) 推荐(0) 编辑
摘要: 代码 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--document.write("<b>浏览器名称:</b>"+navigator.appName+"<br>");document.write("<b>... 阅读全文
posted @ 2009-11-28 00:02 Keosu 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 1.Ruby 历史 Ruby的作者于1993年2月24日开始编写Ruby,直至1995年12月才正式公开发布于fj(新闻组)。之所以称为Ruby,是因为Perl的发音与6月的诞生石pearl(珍珠)相同,因此Ruby以7月的诞生石ruby(红宝石)命名。Ruby明显比其他类似的编程语言(如Perl或Python)年轻,又因为Ruby是日本人发明的,所以早期的非日文资料和程式都比较贫乏,所以现在在网... 阅读全文
posted @ 2009-11-20 20:17 Keosu 阅读(449) 评论(0) 推荐(0) 编辑
摘要: Java 关于时间日期的处理有两个基础类 Calendar 和 Date 。Calendar 有子类 GregorianCalendar ;Date 有子类(java.sql.) Date, Time, Timestamp ;Calendar 类是一个抽象类,它为特定瞬间与一组诸如 YEAR、MONTH、DAY_OF_MONTH、HOUR 等 日历字段之间的转换提供了一些方法,并为操作日历字段(例... 阅读全文
posted @ 2009-11-11 15:19 Keosu 阅读(5128) 评论(0) 推荐(0) 编辑
摘要: Java中的流分为两种,一种是字节流,另一种是字符流.分别由四个抽象类来表示InputStream,OutputStream,Reader,Writer。Java中其他多种多样变化的流均是由它们派生出来的: 下面是IO中输入字符流的继承图。 Reader BufferedReader LineNumberReaderCharArrayReaderFilterReader PushbackReade... 阅读全文
posted @ 2009-11-08 15:37 Keosu 阅读(213) 评论(0) 推荐(0) 编辑
摘要: 容器基本上分为:List,Set,和 MapList 必须保持元素特定的顺序,而 Set不能有重复元素;Map: 一组成对的键值对(key-value)对象。过去的Vector,Stack 避免使用List : ArrayList ,LinkedList对于随机访问(get()),ArrayList的开销小于 LinkedList。 另一方面,从中间的位置插入和删除元素, LinkedList 要... 阅读全文
posted @ 2009-11-07 16:33 Keosu 阅读(410) 评论(0) 推荐(0) 编辑