JavaScript发同步get请求
function httpGetJSON(theUrl)
{
var xmlHttp = new XMLHttpRequest();
xmlHttp.open( "GET", theUrl, false ); // false for synchronous request
xmlHttp.send( null );
return $.parseJSON(xmlHttp.responseText);
}
function httpGetJSON(theUrl)
{
var xmlHttp = new XMLHttpRequest();
xmlHttp.open( "GET", theUrl, false ); // false for synchronous request
xmlHttp.send( null );
return $.parseJSON(xmlHttp.responseText);
}