由
typecho ajax登陆 反回responseText返回的为html代码!
帐户密码为admin/123456
$.ajax({
url: "<?php $this->options->loginAction(); ?>",
data:{'name':'admin','password':'123456'},
type: "POST",
dataType:'json',
success:function(data){
$('#errormsg').html("2");
console.log(data);
},
error : function(data) {
$('#errormsg').html("1");
console.log(data);
}
});
返回的:
readyState:4
status:200
statusText:parsererror
responseText:html代码
一直是error:function(data)
怎么解决