Skip to content

window.location.href can not be recognized by htmlunit ?  #82

@smxc

Description

@smxc

js:

	$.ajax({
		type:'POST',
		url: url,//手机号是否存在
		data: form.serialize(),
		dataType: 'json',
		success: function(data){
			if(data.responseCode=="0000"){
				window.location.href=data.object;
			}else{
				$(".login-error").removeClass("Validform_right");
				if(data.responseCode=="1000" ){
					$(".login-error").text("账号或密码错误");
				}else{
					$(".login-error").text(data.responseMsg);
				}
				$(".codeimg").trigger("click");
				$(".login-btn-a").text("立即登录");
			}
		}
	 }); 

if(data.responseCode=="0000"){
window.location.href=data.object;
}

window.location.href=data.object can not be recognized

help help! thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions