For example,I have a object here
var obj = {a:1,b:2,c:3}
how can i get obj'name to a String "obj"?
You can't. An object may be named by any number of variables, e.g.
var obj = {a:1,b:2,c:3};
var obj2 = obj;
var otherobj = obj2;
All these variables reference the same object -- it doesn't have a specific name.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With