版本不同,$http.post()这种写法好像会出错。
来源:6-6 用户模块逻辑编写-使用装饰器

北鸟南游
2017-03-31
如果是新版本
$http({
method: 'GET',
url: '/someUrl'}).then(function(){});
按照这个方式怎么写post呢?
写回答
1回答
-
$scope.submit = function() { $http.post('data/regist.json', $scope.user).then(function(resp) { //打印数据 console.log(resp.data) }) }
012017-06-15
相似问题