var Test = (function () {
function Test() { }
Test.prototype.Method1 = function (value) {
alert("" + value);
};
Test.prototype.Method2 = function () {
var params = [];
for (var _i = 0; _i < (arguments.length - 0); _i++) {
params[_i] = arguments[_i + 0];
}
for(var i = 0; i < params.length; i++) {
alert("" + params[i]);
}
};
Test.prototype.Method3 = function () {
var params = [];
for (var _i = 0; _i < (arguments.length - 0); _i++) {
params[_i] = arguments[_i + 0];
}
for(var i = 0; i < params.length; i++) {
alert("" + params[i]);
}
};
return Test;
})();
window.onload = function () {
var data = new Test();
data.Method1("Mcn Solution");
data.Method2(1, 2, 3, 4, 5, 6);
data.Method3(1, "Mcn", 3.3, 'c'); }; |