js判断MAC地址

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