function checkUser()
{
if(!check (new_form,customers_email,'請輸入您的賬號!')) return false;
//要及时中断
if(!check (new_form,customers_password,'請輸入您的密碼!')) return false;
return ture;
}
function check (form_name,field_name,text)
{
if (document.form_name.field_name.value=="")
{
alert("text");
document.form_name.field_name.focus();
return false;
}
return true;
}
{
if(!check (new_form,customers_email,'請輸入您的賬號!')) return false;
//要及时中断
if(!check (new_form,customers_password,'請輸入您的密碼!')) return false;
return ture;
}
function check (form_name,field_name,text)
{
if (document.form_name.field_name.value=="")
{
alert("text");
document.form_name.field_name.focus();
return false;
}
return true;
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货