选项HTTP API与参数之间的正确代码是什么?
return $http( {
method: 'OPTIONS',
url: apiUrl + '/Options/' + clientID
} ).error( function ( a, b, c, d, e ) {
console.log( 'a, b, c, d, e', a, b, c, d, e );
} );
答案 0 :(得分:1)
试试这种方式
return $http( {
method: 'OPTIONS',
url: apiUrl + '/Options?clientID=' + clientID
} ).error( function ( a, b, c, d, e ) {
console.log( 'err' );
} );