jquery load 不加载文本文件...我想在单击时加载文本文件...它是一个示例程序
<div id="page">
<h1>Demo Page - How to load page into div via ajax using jquery? </h1>
<table border="1" cellpadding="5" cellspacing="3" width="30%">
<tr>
<td>
<a href="javascript:void(0)" id="loadPage">Click To Load Web Page</a><br />
</td>
</tr>
<tr><td></td></tr>
<tr>
<td><div id="pagecontainer" /></td>
</tr>
</table>
</div>
<script type="text/javascript" language="javascript">
jQuery(function(){
jQuery('#loadPage').click(function(){
jQuery('#pagecontainer').load('sample.txt');
});
})
</script>