jquery中ajax數據傳輸寫法

$.post('{:url("index/index/logininfo")}',{'username':name,'password':pwd},function(data){ if(data.result){ alert(data.result); // window.location.href='./index.html'; }else{ alert(2); } },'json'); 當按
相關文章
相關標籤/搜索