$(function() { var data = { gid: 96064, referer:document.referrer, url:document.location.href, } $.ajax({ url: '//stat.2239.com/statistics/save', type: 'POST', data: data, dateType: 'JSON', success: function(res) { } }); });