Response-路由器URL在手动刷新或写入时不起作用
localhost/joblist
Cannot GET /joblist
localhost/#/localhost/#/joblist#
Router.run(routes, Router.HistoryLocation, function (Handler) {
React.render(<Handler/>, document.body);});localhost/
编辑:/joblist
EDIT 2:
var routes = (
<Route name="app" path="/" handler={App}>
<Route name="joblist" path="/joblist" handler={JobList}/>
<DefaultRoute handler={Dashboard}/>
<NotFoundRoute handler={NotFound}/>
</Route>);Router.run(routes, Router.HistoryLocation, function (Handler) {
React.render(<Handler/>, document.body);});相关分类