我正在尝试将 DOM 附加到从popup.js. 假设我有一个文件存在于 chrome 扩展文件中,名为temp.html,在执行时的某个时候popup.js,我打开这个文件,chrome.tabs.create然后我想将一个 DOM 附加到这个 html 文件。
无论如何我可以这样做popup.js吗?
Extension files:
1-manifest.json
2-functions
functions.js
domToTables.js
3-libs
jquery-3.3.1.min.js
bootstrap-4.2.1-dist
4-myTables
stylesheet.css
*temp.html* \\this file
5-popup
stylesheet.css
index.html
popup.js
6-background.js
7-content.js
Run Code Online (Sandbox Code Playgroud)