function foo() {this.valueOf = function() { return "this is my value";}}var bar = new foo();Print( bar ); // prints: this is my valuePrint( bar == "this is my value" ) // prints: truePrint( bar === "this is my value" ) // prints: false希望本文所述对大家的javascript程序设计有所帮助。