一 Js中的AJAX 样例,返回值JSON
var el, li, i;
el = document.getElementById('add');
var url = '/ServiceAction/com.eweaver.webservice.servlet.MListAction?action=browser&browserid='+browserid+'&pageno='+browserPage+'&objname='+objname;
url=encodeURI(url);
url=encodeURI(url);
$.ajax({
type : "get",
dataType : "JSON",
url: url,
success : function(data){
if(data.length>0){ //
$.each(data,function(i,n){
li = document.createElement('li');
if(isChoice="0")
{
li.innerHTML = ' <div style= "border:1px solid #000; background-colo