<html>
<head>
<script language="javascript">
function test()
{
var str="123";
<!--document.form1.action="tu.jsp?bm=str";-->
document.form1.action="tu.jsp?bm=<%=abc%>";
document.form1.submit();
}
</script>
</head>
<body>
<%! String abc="58"; %>
<form name="form1">
<input type="submit" value="submit" onclick="test()">
</form>
</body>
</html>
联系客服