<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>
<body style="text-align:center;margin:200px">
<form method="post">
<select name="aaa">
<option value="">==请选择==</option>
<option value="get">get</option>
<option value="post">post</option>
</select>
<br />
<input type="button" value="修改提交方法" onclick="aaa()" />
</form>
</body>
<script type="text/javascript">
function aaa(){
var a=document.forms[0];
var b=a.aaa.value;
a.method=b;
alert("当前表单提交的方法是:"+b);
}
</script>
</html>
最后一次改名字