120/118行:
if  (document.hyzc.yhm.value!=="")and  (document.hyzc.email.value!=="") 
修改为:if  ((document.hyzc.yhm.value!="") &&  (document.hyzc.email.value!=""))

解决方案 »

  1.   

    !== 多写一个 = 或者是多写了一个!
    and 不是javascript关键字,用&&
    if后面的用()括起来。
      

  2.   

    实际上,你出错的这句,是重复的,上面已经判断过了。
    可以直接return true;if  (document.hyzc.yhm.value!=="")and  (document.hyzc.email.value!=="") 

    return  true; 
    }  
      

  3.   

    分特=== 和 !== 是 PHP 里的嚴格判斷, JS 里沒有的
      

  4.   

    if ((document.hyzc.yhm.value!="") && (document.hyzc.email.value!="")