Backbone router with multiple parameters
问题 I need to get this to work: routes: { ':product' : 'showProduct', ':product/:detail': 'showProductDetail' showProductDetail never gets called while the ':product' route is set even if it is set afterwards. I tried the following routes: { ':product(/:detail)': showProductOrDetail } But this will not get called when only the second parameter changes. It is important that I have the product itself or the product and detail in the url . Does anyone know how to fix this? 回答1: There's a little