var isNull=/^[\s' ']*$/
if(isNull.test(tel)&&isNull.test(mobile))
{
alert('Phone number and mobile phone number cannot be empty .'); return;
}
转载于:https://blog.51cto.com/haocaige/1390091
var isNull=/^[\s' ']*$/
if(isNull.test(tel)&&isNull.test(mobile))
{
alert('Phone number and mobile phone number cannot be empty .'); return;
}
转载于:https://blog.51cto.com/haocaige/1390091