从PHP MySql访问$ http.post请求中的JSON数据

在这样的函数中是否可以从$ http.post PHP mysql访问json数据:

$scope.getallNamesList = function() {
    $http.post("database/selectall_names.php",{user_id: $scope.selectedUserID})
    .then(function(response){
        $scope.names = response.data;

        if(response.data.user_city == "xxx")
            {
               $scope.selectedCity = response.data.user_city;
            }
    });
}
mqm07072009 回答:从PHP MySql访问$ http.post请求中的JSON数据

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3166355.html

大家都在问