十万火急,没有遇到过的情况!!!!!!!!!!!!!!!!!!!!!!
if (str2!=="JPG")
{
alert("图片格式不正确");
theForm.picture.focus();
return (false);
}
正常
改为
if ((str2!=="JPG")||(str2!=="GIF"))
{
alert("图片格式不正确");
theForm.picture.focus();
return (false);
}
不正常,为什么总执行alert("图片格式不正确");
以前从未遇到过
注:大小写已经经过转换,其它代码省略