나는 ChaplinJS (백본 프레임 워크)에서 일하고 있습니다. 다음은 내 route.js 코드 블록입니다.채플린 라우터 선택적 매개 변수
return function(match) {
match(':customer/getCardsNavSummary', {controller:'customer', action:'showPlan'});
match(':customer/getCardsNavSummary/:plan/:row', {controller:'customer', action:'showPlan'});
};
대신, 나는
return function(match) {
match(':customer/getCardsNavSummary(/:plan/:row)', {controller:'customer', action:'showPlan'});
};
이 잘 적 백본을 작동 다음을 수행합니다. 나는 레일에 대한 라우팅 코드도 살펴 보았고, 거기에서 작동한다. 그러나 chaplinjs에 관해서는 그것은하지 않습니다!
chaplinJS doc에서 라우터 선택 매개 변수와 관련된 것을 찾지 못했습니다.
확인; 감사. 나는이 문제를 제기했다. https://github.com/chaplinjs/chaplin/issues/641#issue –