There is nothing that lets you really do that. You might be able to pull off looping over the globals and looking for a variable that starts with your string.
window[Object.keys(window).find(k=>k.startsWith("hcaptchaCallback"))]();
that will call it the way you showed, but looking at the function signature, looks like you are going to have to use call()
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.