我正在使用 Plunker ( http://plnkr.co/ ) 来测试 JavaScript。我想从浏览器控制台访问我在脚本中定义的变量。
在 Plunker 中,谁能告诉我如何从浏览器控制台访问变量“someValue”。
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title></title>
</head>
<body>
<script type="text/javascript">
var someValue = 3
console.log(someValue);
</script>
</body>
</html>