| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 | var gis = gis || {};gis.server = function() {	};gis.server.jsonAjax= function(obj,exeJson){	var ajaxInfo={			type : 'post',			dataType : 'json',			//contentType : 'application/json;charset=utf-8',			//timeout : 10000, //超时时间设置,单位毫秒			cache : false,// 不从缓存中去数据			async : true,			//url : obj.url,			//data : JSON.stringify(jsondate),			//headers:headinfo,			success : function(data) {				if(exeJson){					exeJson(data);				}			},			error : function(jqXHR, textStatus, errorThrown) {				//alert(jqXHR.responseText);			}		};	ajaxInfo.url=obj.url;	ajaxInfo.data=obj.data||{};	if(typeof(obj.async)!="undefined"){		ajaxInfo.async=obj.async	}	if(typeof(obj.contentType)!="undefined"){		//alert(obj.contentType);		ajaxInfo.contentType=obj.contentType;	}	//alert(ajaxInfo);	$.ajax(ajaxInfo);}gis.server.checking = function() {	alert();};$(document).ready(function() {		//gis.server.checking();});
 |