我有以下代码:
<script language="JavaScript">
function doReload()
{
alert('');
document.getElementById('doPostBack').value = "0";
location.href = 'users.php';
}
function changes()
{
document.getElementById('doPostBack').value = '1';
}
</script>
</head>
<body>
<div id="users" style="height: 80%;">
<form id="submitForm" name="submitForm" method="post">
<input type="button" value="Novo Usuário" title="Adiciona um novo Usuario" onclick="location.href = 'registerUser.php'" />
<input type="button" value="teste" onclick="changes()">
当我单击 teste 时,该功能不执行。