Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] String representation of an object ???
- From: prog.pan at gmail.com (prog pan)
- Subject: [Javascript] String representation of an object ???
- Date: Fri Jul 29 17:02:20 2005
How can I get a string representation of an object ?
For example:
-- For an element's style, it would be something like:
"{'color':'red', 'fontSize':16}"
-- For an array ['aaa', 2], get:
"['aaa', 2]"
(this is relative easier, except that getting the quotation mark
around aaa right could be a nightmare.)
- Prev by Date: [Javascript] Refresh needed and Jumping Div's (IE6/Win)
- Next by Date: [javascript] Question
- Previous by thread: [Javascript] Looking for a JavaScript version of a phpInfo type page
- Next by thread: [javascript] Question
- Index(es):