【问题标题】:Chrome extension load a background.js each time the page reloads每次页面重新加载时,Chrome 扩展都会加载一个 background.js
【发布时间】:2012-03-09 16:07:56
【问题描述】:

我可以在每次使用我的 chrome 扩展程序重新加载页面时重新加载 background.js 吗?

我想每次都用它来注入一个 CSS 文件。

【问题讨论】:

    标签: javascript google-chrome google-chrome-extension


    【解决方案1】:

    background.html - background page,每个 chrome 会话仅加载一次。
    (我假设您的 background.js 文件从后台页面运行,因为文件名) em>

    【讨论】:

      猜你喜欢
      • 2017-04-01
      • 1970-01-01
      • 1970-01-01
      • 2013-11-28
      • 1970-01-01
      • 1970-01-01
      • 2015-08-28
      • 2019-11-04
      • 2018-01-23
      相关资源
      最近更新 更多