李战 · 2007-04-09 15:25:04 · 阅读: 543 eval甚至可以替代语句的一小部分,例如 condition = "1=2"; if (eval(condition)) alert("TRUE") else alert("FALSE"); 输出:FALSE