我希望将每个访问的页面(仅HTML)存储在预定义的域中。这是我到目前为止的内容:
chrome.webNavigation.onCompleted.addListener(function(details) {
chrome.pageCapture.saveAsMHTML(tabId: tab.id, function(details){
console.log("Page Content: " + details);
});
}, {
url: [{
// Runs on my.com, my.co.uk, but also my.foo.com\
hostContains: '.my.'
}],
});
我收到一个错误消息:
Uncaught SyntaxError: missing ) after argument list
指向我的chrome.pageCapture行。没有看到...