📅  最后修改于: 2022-03-11 14:57:20.135000             🧑  作者: Mango
var feature = {
id: 123,
features: $scope.items
};
$http.post(url, JSON.stringify(feature)).success(function(result) {
alert('successfully sent to server');
}).error(function() {
alert('an error occurred');
});