简体   繁体   English

chrome打包的应用重新加载html

[英]chrome packaged app reload html

How can I reload complete html of a chrome packaged app. 如何重新加载chrome打包应用程序的完整html。 I do not want to do chrome.runtime.reload() . 我不想做chrome.runtime.reload() Is there something which can be done using chrome.app.window.current() ? 使用chrome.app.window.current()是否可以完成某些工作?

If you're asking about how to reload just one app window, try calling close() on the appropriate AppWindow , then have your event page create it again. 如果您询问如何仅重新加载一个应用程序窗口,请尝试在适当的AppWindow上调用close() ,然后让事件页面再次创建它。

If you're asking how to replace the DOM in an app window, then replace the DOM, just as you would in any other single-page webapp. 如果您询问如何在应用程序窗口中替换DOM,则替换DOM,就像在其他任何单页webapp中一样。

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

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