frontend/Ionic angular 1

$http 데이터 보내기 - params

Zeronine 2017. 11. 3. 11:02



var data = { teamcode : "T01" };


$http({

method : "POST",

url : url,

params : data,

headers : {

"Content-Type" : "application/json; charset=utf-8"

}

}).success( function( $data ){


console.log( $data );


}).error( function( err ){


console.log( err );


});

저작자표시 비영리 변경금지 (새창열림)