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