58,444
社区成员
发帖
与我相关
我的任务
分享
谢啦!冒失是这个错误 - -<input type="button" name="button" value="" onclick="window.location.href('index.jsp')"/>改成<input type="button" name="button" value="" onclick="window.location.href='index.jsp'"/>
<html>
<head>
<title>Test</title>
<script>
function aab() {
alert('turn to aa.html');
window.location.href = './aa.html';
}
</script>
</head>
<body>
<input type="button" name="button" value="aa" onclick="aab()"/>
</body>
</html>