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