请问html这样跳转同目录下的jsp页面,为什么直接下载jsp,而不是跳转
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<button onclick="redirect()">button</button>
<script>
function redirect(){
window.location.href="../test.jsp";
}
</script>
</body>
</html>