반응형

<!DOCTYPE html>

<html>

<head>

<script>

var a = 'test';

    var test = 'a';

    var temp = {};

    eval("temp."+a+"=test");

    console.log(temp);

</script>

<title>Page Title</title>

</head>

<body>


<h1>This is a Heading</h1>

<p>This is a paragraph.</p>


</body>

</html>



반응형
LIST

+ Recent posts