Link 点击事件存在
Link Click event exist
如果存在 link 点击事件,怎么可能得到真实的结果?
使用 google 标签管理器有一个事件 gtm.linkClick
。
可以使用简单的客户代码而不使用 gtm 吗?
您可以尝试类似的操作:
var foo = $.data( gtm, 'events' ).click // you can use your object instead of "gtm"
// you can query $.data( object, 'events' )
// and get an object back, then see what events are attached to it.
$.each( foo, function(i,o) {
alert(i) // guid of the event
alert(o) // the function definition of the event handler
});
如果存在 link 点击事件,怎么可能得到真实的结果?
使用 google 标签管理器有一个事件 gtm.linkClick
。
可以使用简单的客户代码而不使用 gtm 吗?
您可以尝试类似的操作:
var foo = $.data( gtm, 'events' ).click // you can use your object instead of "gtm"
// you can query $.data( object, 'events' )
// and get an object back, then see what events are attached to it.
$.each( foo, function(i,o) {
alert(i) // guid of the event
alert(o) // the function definition of the event handler
});