埃洛那里,
我正在尝试将 javascript 变量的值分配给 java 变量。但我不知道如何做到这一点?比如说我有这个:
<html>
<head>
<script type="text/javascript">
function return variable(){
var a = "hello";
return a;
}
</script>
</head>
<body>
<%
//The java code
String b = //how do I get that javascript variable here?
%>
</body>
</html>