日期:2014-05-16 浏览次数:20630 次
function getJsonData(url) { var ajax = Common.createXMLHttpRequest(); ajax.open("GET",url,false); ajax.send(null); try { eval("var s = "+ajax.responseText); return s; } catch(e) { return null; } } function getData(){ var url="BlacklistService.do?datas="+datasvalue; var result = getJsonData(url); }
function getJsonData(url,para) { var ajax = Common.createXMLHttpRequest(); ajax.open("POST",url,false); ajax.setRequestHeader('Content-Type','application/x-www-form-urlencoded'); ajax.send(para); try { eval("var s = "+ajax.responseText); return s; } catch(e) { return null; } } function getData(){ var url="BlacklistService.do"; var para="datas="+datasvalue; var result = getJsonData(url,para); }