typecho ajax登陆 反回responseText返回的为html代码!
帐户密码为admin/123456
<script>
$.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); } });
</script>
返回的:
readyState:4
status:200
statusText:parsererror
responseText:html代码
一直是error:function(data)
怎么解决
慕桂英3389331
三国纷争