$.ajax({
type: "get",
url: "http://"+host_url+":8800/index.php?action=login&ts=login&username="+uname+"&password="+pass+"&chekcode="+va+"&callback=jsonpCallback",
dataType: "jsonp",
success: function (data)
{
//alert(data.code);
if(data.code ==
‘101‘){
window.location.replace("http://"+host_url+":8800/index.php")
;
return true;
}
}
});
原文:http://www.cnblogs.com/xlz307/p/3643978.html