4
我怎麼能強迫sammy.js來識別網址/Brief
是一樣/brief
?sammy.js:駱駝大小寫的網址
this.get('/brief', function(context) {
console.log("BRIEF");
});
我有我的CMS的設置來產生小寫的網址,但如果與駝峯格式的URL的用戶類型我得到的錯誤:
Tue Mar 19 2013 15:39:31 GMT+1100 (AUS Eastern Daylight Time)] body 404 Not Found get /Brief Error {message: "404 Not Found get /Brief "}
的頁面仍然加載罰款,但Sammy.js將不會激活該路線的模塊。