<html>
<head>
<script type="text/javascript" src="../resource/jquery-1.4.js"></script>
<script type="text/javascript">
var u = 'http://hq.sinajs.cn/list=CU1107,CU1108,CU1109,CU1110,CU1111'
$("#test").load(u);
})
</script>
</head><body>
<div id="test">abc</div>
</body>本来应该是远程网页的内容,结果显示为空白,请问是哪里有问题?
<head>
<script type="text/javascript" src="../resource/jquery-1.4.js"></script>
<script type="text/javascript">
var u = 'http://hq.sinajs.cn/list=CU1107,CU1108,CU1109,CU1110,CU1111'
$("#test").load(u);
})
</script>
</head><body>
<div id="test">abc</div>
</body>本来应该是远程网页的内容,结果显示为空白,请问是哪里有问题?
这个地址是js文件吧
$(function(){
$("#test").load(u);
})})
事件都没有,怎么会给你load啊!
jQuery.ajax({
url:"<%=request.getContextPath()%>/createZbmc",
type: 'POST',
dataType: 'text',
timeout: 1000*30,
beforeSend: function(){
},
complete: function(){
},
success: function(resposeText){
},
error: function(){
alert('代码表加载错误');
}
});
});
alert(data);
alert('abc');
});这样还是不行啊。