日期:2014-05-20 浏览次数:20886 次
function check() {
    if (/^-?[0-9A-Fa-f]{28}$/.test(rfid.epc.value)) return true;
    alert("输入格式不正确!");
    return false;
}
------解决方案--------------------
function check() {
   if (/^-?[0-9A-Fa-f]{28}$/.test(rfid.epc.value)) return true;
   alert("输入格式不正确!");
   return false;
}