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