function white_mac_FormCheck(mac)
{
var temp = /[A-Fa-f0-9]{2}:[A-Fa-f0-9]{2}:[A-Fa-f0-9]{2}:[A-Fa-f0-9]{2}:[A-Fa-f0-9]{2}:[A-Fa-f0-9]{2}/;
if (!temp.test(mac))
{
return false;
}
return true;
}
转载于:https://www.cnblogs.com/qingsong/p/5031093.html