首页
注册
登录
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请
登录
广告
V2EX
›
Node.js
Backbone.history.start({pushState: true}); 提示没有start这个方法
yakczh
·
2012-12-27 09:57:52 +08:00
· 3347 次点击
这是一个创建于 4165 天前的主题,其中的信息可能已经有所发展或是发生改变。
Meteor.Router.add({
'/': 'home',
'/login': 'login',
'/signup': 'signup'
}
});
Meteor.startup(function () {
Backbone.history.start({pushState: true});
});
运行 TypeError: Cannot call method 'start' of undefined
Start
true
signup
1 条回复
•
1970-01-01 08:00:00 +08:00
1
hafeyang
2012-12-27 12:53:54 +08:00
start必须要有router的时候才会有history对象。可以参见
http://stackoverflow.com/questions/7343357/cannot-call-start-of-undefined-when-starting-backbone-js-history
关于
·
帮助文档
·
博客
·
API
·
FAQ
·
实用小工具
·
2387 人在线
最高记录 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 25ms ·
UTC 15:48
·
PVG 23:48
·
LAX 08:48
·
JFK 11:48
Developed with
CodeLauncher
♥ Do have faith in what you're doing.