baidut
10/29/2014 - 1:31 PM

AJAX

AJAX

<script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.8.0.js"></script>
<script type="text/javascript">
	htmlobj=$.ajax({
				type: 'POST', 
				url: 'http://localhost/example/library/spider/fetch_book_gb2312.php',  // './ajax/test.txt',
				data:'id=201181086', 
				timeout:8000,
				async: false,  
				//success: function(res) { alert(res);}
			});
	var csv =  htmlobj.responseText;
</script>