2014-07-13 01:04:16 +02:00
|
|
|
//// [classOrder1.ts]
|
|
|
|
class A {
|
|
|
|
public foo() {
|
|
|
|
/*WScript.Echo("Here!");*/
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
var a = new A();
|
|
|
|
a.foo();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//// [classOrder1.js]
|
|
|
|
var A = (function () {
|
|
|
|
function A() {
|
|
|
|
}
|
|
|
|
A.prototype.foo = function () {
|
2014-08-22 02:17:02 +02:00
|
|
|
/*WScript.Echo("Here!");*/
|
2014-07-13 01:04:16 +02:00
|
|
|
};
|
|
|
|
return A;
|
|
|
|
})();
|
|
|
|
var a = new A();
|
|
|
|
a.foo();
|