HJ90,
var Some = function () {};
Some.prototype.method1 = function () {
console.log(1);
return this;
};
Some.prototype.method2 = function () {
console.log(2);
return this;
};
Some.prototype.method3 = function () {
console.log(3);
return this;
};
var some = new Some();
some.method1().method2().method3().method1().method2().method3();//...