摘要:
function telephoneCheck(str) { // Good luck! //return true; var phone = /^1? ?(\d{3}|\(\d{3}\))[ -]?\d{3}[ -]?\d{4}$/; return phone.test(str); } telephoneCheck("555-555-5555"); 阅读全文
摘要:
function add() { //return false; if(typeof arguments[0] !== "number" || arguments.length > 1 && typeof arguments[1] !== "number"){ return undefined; } if(arguments.length == 1){ var a... 阅读全文