K
kirkox
Hi guys, this is my first post here and I am a newbie, of course.
My question is simple...I'd like to override toString() function such
that it can works on Object.
I have something like that
var myObj = new Object();
myObj.name = 'xxxx';
myObj.surname = 'yyyy';
.....
....
How can I override toString function?
There are some references on the net, like
http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object:toString
or....?
Please, help me.
Thanks in advance for the help.
See you.
My question is simple...I'd like to override toString() function such
that it can works on Object.
I have something like that
var myObj = new Object();
myObj.name = 'xxxx';
myObj.surname = 'yyyy';
.....
....
How can I override toString function?
There are some references on the net, like
http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object:toString
or....?
Please, help me.
Thanks in advance for the help.
See you.