虚拟机,编译原理,应用框架

08 2008 档案

javascript OOP:实现继承、多态与封装
摘要:代码是随手写的,只提供思路。 这个原理很简单,看代码就懂,不多说了。 Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->(function (){ var h = 0; handle = function (){return h++};... 阅读全文

posted @ 2008-08-30 23:55 文宇祥 阅读(605) 评论(1) 推荐(0)

利用xslt扩展html
摘要:test.xml Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> test.xsl Code highlighting produced by Actipro CodeHighlighter ... 阅读全文

posted @ 2008-08-15 17:27 文宇祥 阅读(491) 评论(0) 推荐(0)

private constructor的模拟
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->(function (Package){ var _key = {}; var ClassA = function (key_){ if (_key !== ke... 阅读全文

posted @ 2008-08-07 09:56 文宇祥 阅读(248) 评论(0) 推荐(0)

利用apply来进行参数传递和转换
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->function t(){ var fns = Array.prototype.concat.apply([], arguments); for (var i = 0; i < ... 阅读全文

posted @ 2008-08-04 10:46 文宇祥 阅读(465) 评论(0) 推荐(0)

代理constructor,prototype且不让instanceof失效
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->function NewClasse(superclass){ return function classe(){ if (classe.prototype != sup... 阅读全文

posted @ 2008-08-01 01:34 文宇祥 阅读(292) 评论(0) 推荐(0)

导航