简体   繁体   English

在 PWA 中显示返回和重新加载按钮(Progressive Web App)

[英]Display Back and Reload Buttons in PWA (Progressive Web App)

How do I add these buttons (Back and Refresh) in PWA?如何在 PWA 中添加这些按钮(返回和刷新)?

it should be the buttons is show up in top left application enter image description here它应该是按钮显示在左上角的应用程序中在这里输入图像描述

Welcome to SO.欢迎来到 SO。 Using Javascript, try:使用 Javascript,尝试:

Back:后退:

history.back();

Reload:重新加载:

window.location.reload();

See HERE for History.go() for more options有关 History.go() 的更多选项,请参见此处

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

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