Google chrome 为什么chrome.history.onVisited事件在一次访问中被多次触发?

Google chrome 为什么chrome.history.onVisited事件在一次访问中被多次触发?,google-chrome,google-chrome-app,history,browser-extension,Google Chrome,Google Chrome App,History,Browser Extension,当web浏览器加载新网页时,我正在尝试执行某些操作 我在background.js中的代码在这里 chrome.history.onVisited.addListener(function(details) { console.log('onVisited is fired: '+details.url); }); 不幸的是,控制台输出“onVisited”会在每个事件中触发多次:xxxxx 帮帮我。plz.该站点可能正在使用history.pushState或replaceState。该

当web浏览器加载新网页时,我正在尝试执行某些操作

我在background.js中的代码在这里

chrome.history.onVisited.addListener(function(details) {
  console.log('onVisited is fired: '+details.url);
});
不幸的是,控制台输出“onVisited”会在每个事件中触发多次:xxxxx


帮帮我。plz.

该站点可能正在使用history.pushState或replaceState。该站点可能正在使用history.pushState或replaceState。