$.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');