我想在评估()中运行一个函数,我将它作为参数传递,但我得到'func is not a function',我错过了什么?
木偶版:10.2
平台/操作系统版本:Windows 10、Node 8.2.1
var func = function() {
console.log("xxxxx");
};
var response = await page.evaluate( (func) => {
func(); //func is not a function
}, func);