angular吧 关注:2,071贴子:15,992
  • 0回复贴,共1

求求求求求求求求求求求求求求求求求求求求求求求求前后台交互

只看楼主收藏回复

$http.post($rootScope.URLAdmin+"/Handler/UserHandler.ashx?action=add",$scope.onew/*{
userName:onew.yong,
email:onew.email,
phone:onew.phone,
userPwd:onew.passwords
//这里发送的数据对吗??
}*/)
.success(function(response)
{
/* if(response.success){ //这里成功后怎么接收不到数据
alert(1)
}else{
alert(2)
}*/
$scope.yong=response.data.name;
})


1楼2017-04-22 16:36回复