我在提交表单后重定向。
但是表格位于iframe中,因此我无法跟踪其提交。
提交表单后是否可以跟踪我的重定向?
我也在控制台中看到消息
定位到https://events.genndi.com/thankyou/1d89404d09?req=8r122534042ok
我认为您可以使用hashchange
window.addEventListener("hashchange", funcRef, false);
您可以在此处了解更多信息:https://developer.mozilla.org/en-US/docs/Web/API/WindowEventHandlers/onhashchange
带有jQuery的小例子:
$(window).on('hashchange', function() {
// type your code here
});
$('a').live('click', function () {
$.post('/registerclick/', { data: $(this).attr('src') }, function () {});
});
$('a')。live('click',function(){$ .post('/ registerclick /',{data:$(this).attr('src')},function(){}); });