代码如下:
html
head
titleajax test/title
meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /
script type="text/javascript" src="jquery.js"/script
script type="text/javascript"...
function ajaxRequest()...{
var url = $("#stockurl").val() + $("#stockinit").val();
$.ajax(...{
url: url,
type: 'GET',
dataType: 'html',
timeout: 2000,
success: function(response)...{
var stocks = response.split(';');
for(var i=0; istocks.length-1; i++)...{
var content = stocks[i];