这个无比像Java语言:
'package jui'
.j(function() {
'import j.unit.Observable'.j();
'class Component'
.j({
constructor:function() {
},
show:function() {
console.log("Component");
}
});
'class Container extends Component implements Observable'
.j(function(jsuper, ob) {
return {
jstatic:{
a:1
},
constructor:function() {
var jthis = this;
jsuper.constructor.call(this);
ob.constructor.call(this);
console.dir(jthis.constructor.a);
}
}
});
});
实现代码:
String.prototype.j = function() {
var code;
if (arguments.length == 1) {
code = arguments[0];
return j(this.toString(), code);
}
return j(this.toString());
};
更完整代码:
http://openxtiger.iteye.com/blog/1728643
分享到:
相关推荐
Quartz中的cron-like表达式解析 cron-like unix-like c#
Ajax-laravel-like-comment.zip,基于ajax的laravel站点级评论系统。,ajax代表异步javascript和xml。它是多种web技术的集合,包括html、css、json、xml和javascript。它用于创建动态网页,其中网页的小部分在不重新...
ESPRIT-like算法是基于ESPRIT算法的解相干算法,通过构造托普利兹矩阵来进行解相干,使其可处理相干信号,此程序为一个函数,直接调用就行
We-Like-Study 开源考试系统 支持多人统考排名计算 支持简答题,填空题 标签:WeLikeStudy
Unless you absolutely have to, or just feel like it, in which case totally do! labs-time A tool that tries to empirically estimate the precision of various ways to bide your time in java. Usage: cd ...
Java数据结构电子书:There are plenty of books that teach introductory data structures. Some of them are very good. Most of them cost money, and the vast majority of computer science undergraduate ...
Learning-Python-learn-to-code-like-a-professional-with-Python-an-open-source-versatile-and-powerful-programming-language.pdf
Laravel开发-laravel-like-comment 基于Ajax的Laravel全站式类似和评论系统
前端开源库-map-like类地图,类地图对象。
java语言程序设计课后答案 作业参考答案 习题一 4、如何建立和运行Java程序, 首先启动文本编辑器,如记事本、UltraEdit等,编辑程序代码,并以.Java作为文件 扩展名保存程序源代码;然后进入dos环境利用javac编译源...
pinterest瀑布流 多列listview
仿饿了么移动端源码
Haar-like + adaboost +级联 人脸检测算法代码,简洁的代码,已通过测试
利用MATLAB实现基于基于四阶累积量MUSIC-like算法,在保持良好分辨能力的同时,降低了计算的复杂度
Many old Java idioms are no longer required and new features like lambda expressions will increase programmer productivity, but navigating these changes can be challenging., , Core Java® for the ...
Why-do-you-like-pandas-教师说课大赛说课稿.docx
分布式搜索elasticsearch java API 之(一)--- 与集群交互 2 分布式搜索elasticsearch java API 之(二)--- put Mapping...分布式搜索elasticsearch java API 之(八)--- 使用More like this实现基于内容的推荐 12
swift-is-like-kotlin, 比较Swift语法与 Kotlin Swift就像 Kotlin页面:http://nilhcem.github.io/swift-is-like-kotlin/以编程方式灵感来自于 swift-is-like-go,并从 swiftislikescala 视觉灵感灵感
As the world at our time has to face developments like keen climate change and globalisation, one may ask about the significance of building human-like machines, which probably will never operate as ...
sp2和sp3杂化的B-C-N的第一性原理研究,罗晓光,何巨龙,理论研究B-C-N三元化合物的结构从配位数角度上基本可以分成sp2杂化和sp3杂化两大类,由于C和BN均存在一些介于sp2杂化和sp3杂化之间的结�