gpt4 book ai didi

javascript - 模拟 _gaq_push 函数的函数

转载 作者:行者123 更新时间:2023-12-03 01:52:34 25 4
gpt4 key购买 nike

我需要模拟 _gaq_push() 函数来制作旧的 onclick="_gaq.push(['_trackEvent', 'Action', 'Event', 'EventName']);"运行时执行安全。有什么想法怎么做吗?

最佳答案

你的意思是像一个模拟?像这样的事情:

var _gaq = {};
_gaq.push = function(){
console.log(arguments);
}

关于javascript - 模拟 _gaq_push 函数的函数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50353858/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com