window.history.back(-1); //返回上页 window.location.href = document.referrer; //返回上页并重新显示 $.checkMobilePhone = function(value) { return /^(13/d{9}|18/d{9}|15/d{9})$/i.test($.trim(value)); } //jquery 验证手机号 jQuery.noConflict(); //jquery来代替$,挺有用 貌似jquery 比js果然强大些