日期:2014-05-16 浏览次数:20443 次
function callJSONPServer (url) {//提供客户端发送请求的方法
	oscript = document.getElementById(url);
	if (oscript) {
		document.body.removeChild(oscript);
	} 
	var script = document.createElement('script');
	script.setAttribute('type', 'text/javascript');
	script.setAttribute('src', url);
	script.setAttribute('id', url);
	document.body.appendChild(script);
}
function onJSONPServerResponse () {
	alert(new Date().getTime());
}
eval('(' + onJSONPServerResponse() + ')');