phpphp跳转数据库jquery后端开发
那么问题来了,跳转的jquery代码失效了,即使出现alert标签,点确认后还是会直接跳转到action=获取数据的,php,所以想问有没有什么办法可以即传输数据给php,又事先**判断**(jquery判断的内容满足要求),跳转到指定list.php
jquery代码:
function sublime(){ if ($('#name,#message').val().length alert(请输入必填项); }else if($('#qq').val().length alert(请输入选填项); }else if($('#telphone').val().length alert(请输入正确的手机号码);
}else{ window.location.href=list.php; }}