SOURCE

console 命令行工具 X clear

                    
>
console
function showMethod()
  {
  var x=document.getElementById("myForm")
  alert(x.method)
  }
<form id="myForm" method="post">
   名称:
  <input type="text" value="米老鼠"> 
  <input type="button" onclick="showMethod()" value="显示 method"> 
 </form>