chrome extension API for refreshing the page
问题 Is there an API to programmatically refresh the current tab from inside a browser action button? I have background page configured, which attaches a listener via: chrome.browserAction.onClicked.addListener(function(tab) { ... }); So the callback function retrieves a reference to the tab that it was clicked from, but I don't see an API anywhere to refresh/reload that tab. 回答1: I recommend using chrome.tabs.executeScript to inject javascript that calls window.location.reload() into the current