简体   繁体   English

如何加载第二页作为覆盖层

[英]How to load a second page as an overlayer

How can develop a single page web app with seamless page load, an example is http://www.producthunt.com/posts/devicons 如何开发具有无缝页面加载的单页面Web应用程序,例如http://www.producthunt.com/posts/devicons

from this example use can see the second pages loads to the right and source code and the browser url of the second page changes, however by clicking to the left, the user is back at the first page and the source code and browser url changes. 从该示例的使用中,可以看到第二页加载到右侧,并且源代码和第二页的浏览器URL发生了变化,但是,通过单击左侧,用户又回到了第一页,源代码和浏览器URL发生了变化。

So basically product hunt uses react router from what I can see from their source code in debugger. 因此,基本上,从我在调试器中的源代码中可以看到,产品搜寻使用的是React Router。 That takes care of pretty much everything. 这几乎可以解决所有问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM