typecho模板ajax,typecho ajax登陆
生活随笔
收集整理的這篇文章主要介紹了
typecho模板ajax,typecho ajax登陆
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
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)
怎么解決
總結
以上是生活随笔為你收集整理的typecho模板ajax,typecho ajax登陆的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: asr语音转写_搜狗智能录音笔C1正式上
- 下一篇: HTML+CSS+JS实现 ❤️动态散花