var url= window.location.href;
$.ajax({
//提交数据的类型 POST GET
type:"POST",
//提交的网址
url:"http://data.zz.baidu.com/urls?site=www.cha001.com&token=WcxsoetdKKfVcdlh",
//提交的数据
data:url,
//返回数据的格式
datatype: "json",//"xml", "html", "script", "json", "jsonp", "text".
});