我試過了jQuery get函數並編碼如下。我的下面的代碼有什麼問題?它不工作。在jQuery中將數據加載到DIV中
<style type="text/css">
<!--
#Layer1 {
position:absolute;
width:200px;
height:115px;
z-index:1;
}
-->
</style>
<div id="Layer1"> </div>
<script type="text/javascript">
jQuery.get('http://google.com/', null, function(data)
{$('#Layer1').append(data);
}, 'html');
</script>
如果你真的使用'google.com',那麼它的一個跨域請求,這不應該工作。 – Usman
我試過偶'jQuery.get('test.html',null,function(data)'但是沒有用:( –