0
위한 방법) 방법을 정의백본은 다음과 같이 정의 내가 (가져 오기에 대한 사용자 정의 래퍼 메소드를 생성하려는 컬렉션을
let personCollection = Collection.extend({
mainIndex: 'id',
url: 'https://jsonplaceholder.typicode.com/posts',
model:Person,
findAll:function(){
return this.fetch({url:this.url, type: 'POST'});
}
}); findall은에() 메소드가 나는 URL 경로 및 HTTP 메소드, 하지만 위의 코드를 보내기를 변경하려는
GET 요청