var kuohao = {
“v1” : “i am v1”,
“f2” : function () {
this.f1()
},
“f1” : function () {
console.log("show in f1: " + this.v1)
}
}
exports = module.exports = kuohao;
var kuohao = function () {
this.v1 = “i am v1”;
this.f1 = function () {
console.log("show in f1: " + this.v1)
}
this.f2 = function () {
this.f1()
}
}
exports = module.exports = new kuohao;