‘GET’, isArray: true},
‘reomve: {method: ‘DETELE’},
‘detele’: {method: ‘DETELE’} }; ⾃自⾏行定義Method: $resource(‘/someUrl’, {}, {
someMethod: {method: ‘GET’, isArray: true, timeout: 30000, ……}
}); 可變網址參數:
$resource(‘/someUrl/:Id’, {Id: 5});
MyData.getName.get({Id: 5}, function(){…..}, function(){.….});