function userDefineFromParam(form_id) { var param = {'1151935':[{'id':'4430229','type':'1','isCur':'1','required':'0', 'regex':'','fun':'', 'msg':''},{'id':'4430230','type':'1','isCur':'1','required':'0', 'regex':'/^0?1\\d{10}$/','fun':'', 'msg':'手机格式有误'},{'id':'4430231','type':'1','isCur':'1','required':'0', 'regex':'/^(?:[a-z\\d]+[_\\-\\+\\.]?)*[a-z\\d]+@(?:([a-z\\d]+\\-?)*[a-z\\d]+\\.)+([a-z]{2,})+$/i','fun':'', 'msg':'请正确填写您的电子邮箱'}]}; return param[form_id] ? param[form_id] : ''; }; $(function(){ auto_check(userDefineFromParam(1151935)); });