最直接的....把 k!=""改成 k!=""&&k!="undefined"   嘿嘿(不知道是用&&还是 and 了~~~)   if (k!="")
   {
      form1.menu.value=k
   }