if(/[@#\$%\^&\*]+/gi.test($("#user_api_register_form").find("input[name=‘user_name‘]").val())) { $.showErr("用户名含有非法字符",function(){ $("#user_api_register_form").find("input[name=‘user_name‘]").focus(); }); return false; }
时间: 2024-10-06 18:32:46
if(/[@#\$%\^&\*]+/gi.test($("#user_api_register_form").find("input[name=‘user_name‘]").val())) { $.showErr("用户名含有非法字符",function(){ $("#user_api_register_form").find("input[name=‘user_name‘]").focus(); }); return false; }