これが私のコードです:-
<!doctype html>
<html>
<head>
<title></title>
</head>
<body>
Everything related to routers....
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"> </script>
<script src="../underscore-min.js"></script>
<script src="../backbone-min.js"></script>
<script type="text/javascript">
var Router = Backbone.Router.extend({
routes: {
"foo/:bar" : "paramtest",
"*action" : "func"
},
func: function (action) {
console.log(action);
},
paramtest:function (p) {
console.log(p);
}
});
new Router();
Backbone.history.start();
</script>
</body>
</html>
キャッチされていない TypeError: オブジェクト # has no method 'on' backbone-min.js:1 h.extend.start backbone-min.js:1 (無名関数)