Thomas Darimont
Erfahrenes Mitglied
Hallo,
schaut mal hier:
http://perfectionkills.com/global-eval-what-are-the-options/
Ausgabe:
Gruß Tom
schaut mal hier:
http://perfectionkills.com/global-eval-what-are-the-options/
Javascript:
var x = "global";
function f() {
var x = "local"
console.log(eval("x")); // local
console.log((1,eval)("x")); //global
}
f();
Ausgabe:
Code:
local
global
Gruß Tom