$(function() { var url = document.referrer; $.post("http://china.tyzs8.com/count/", { "url": url }, function(data){ }, "json"); });