Hallo,
eval() ist evil! Benutze es nicht!
Warum?!
Es erzeugt angeblich viel Overhead und kann unsicher sein. Den Spruch "eval is evil" hat meines Wissens Douglas Crockford (YAHOO) geprägt.
Zitat Douglas: "The eval function is very fast. However, it can compile and execute any JavaScript program, so there can be security issues. The use of eval is indicated when the source is trusted and competent. [...] There are cases where the source is not trusted. In particular, clients should never be trusted."
Gruß, Don P