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