angularjs post

/**
* POST 1
* $http.post('http://localhost:8001/quickstart/task/create', {
newTask: newTask
})
*/


/**
* POST 2
* http.post('http://localhost:8001/quickstart/task/create',newTask).success(function(){
//window.location.href = "Gulugulus/subMenu";
});
*
*/


/**
* POST 3
* $http({
method: "POST",
url: "/metronic/api/getAfterSales",
data:$.param({orderNo: orderNo,sessionId:sessionId}),
async: false,
dataType:'json'
})

posted on 2016-07-29 09:42  adolfmc  阅读(198)  评论(0编辑  收藏  举报