【发布时间】:2019-10-28 12:20:47
【问题描述】:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
</head>
<body>
<h2> why ${variableName} is in consider as undefined in jsp page
<script>
let x="x";
console.log(`${x} is the variable`)
</script>
</body>
</html>
${} 在 jsp 页面中被视为未定义。 请告诉我它是怎么来的。 谢谢!
【问题讨论】:
-
您应该始终查看生成的 HTML,这很明显。
标签: javascript jsp ecmascript-5