crossroadsjs

Single page application routing w/ Crossroads & Hasher, by example

旧街凉风 提交于 2019-12-08 14:14:15
问题 I am trying to write my first single-page application. The idea is to have 1 HTML file that contains many <div> tags; where each <div> represents a single web "page". Then the application just shows 1 <div> at a time, and hides the others. In this way, as users navigate my app, I'm really just showing/hiding different "page" divs, and giving the illusion of a single page app. Additional requirements are: This is an HTML5 app Each page div must map too its own bookmarkable URL ( http://myapp