1
我正在編寫一個Chrome擴展,並且在contentscript中,我嘗試在頁面中添加一個iframe。 iframe的源文件是我的html文件。但它無法加載iframe,它顯示'找不到頁面'。無法將iframe添加到帶有contentscript Chrome擴展的頁面
$('<iframe />');
$('<iframe />', {
name: 'frame1',
id: 'frame1',
src: 'iframe.html'
}).appendTo('body');