日期:2014-05-16 浏览次数:20793 次
$(document).ready(function(){
	$('#memberReg').submit(function(){ 
		
		$('#memberReg').ajaxSubmit({
			target: 'div#notice',
			type:"POST",
			url: PDV_RP+'servlet/regPostServlet',
			data: "act=getstep&nowstep=account&str=stepAccount",
			success: function(msg) {
				
				switch(msg){
					
					case "OK":
						$('div#notice').hide();
						if($("#nextstep")[0].value=="enter"){
							window.location='index.jsp';
						}else{
							
							window.location='regDetails.jsp';
						}
					break;
				}
				
			}
		}); 
       return false; 
   }); 
});//data: "act=getstep&nowstep=account&str=stepAccount",
//==>改成这样试试,API示例给的是json对象,字符串格式的键值对可能不支持。
data: {act:'getstep',nowstep:'account',str:'stepAccount'},