Meta
VILIC01:49 - 08.15 2010
Vejis 开发笔记 2010.8.15( no response yet )

Version: 0.0.0.2

更改了函数重载的实现, 将原来的字符串变成了类, 扩展性更强. 见下面的MyClass.

vejis.use(vejis, true);

var test = _();

test._(Integer, function (n) {
    alert('Integer: ' + n);
});

test._(MyClass, function (obj) {
    obj.alert();
});

var obj = new MyClass();
test(18);
test(obj);

function MyClass() {
    this.alert = function () {
        alert('It\'s a new Class!');
    };
}

Original link of this archive: http://www.vilic.info/blog/archives/497
本文的原始链接: http://www.vilic.info/blog/archives/497

There's No Comment to "Vejis 开发笔记 2010.8.15"
To be the first?
Leave a Comment