我试图在 chrome.scripting.executeScript 调用中的“func”参数中调用函数内部的外部函数:
await chrome.scripting.executeScript({
target: {tabId: tabId},
func: async () => {
//call a extern function here
}
})
Run Code Online (Sandbox Code Playgroud)
在这次通话中我得到“ReferenceError:[函数名称]未定义”
我想知道是否可能,如果可以,怎么可能?