日期:2014-05-16 浏览次数:20529 次
<script language="javascript" src="jquery-1.5.2.min.js"></script> <script language="javascript"> function callback() { alert('load success!'); } function loadcontent() { $('#content').load('2.html', callback); } </script> <input type="button" value="显示结果" onclick="loadcontent()" /><br> <div id="content" style="width:300px; height:200px; border: 1px solid #999"></div>
<p>页面已经成功加载。</p> <script language="javascript" src="jquery-1.5.2.min.js"></script> <script language="javascript"> window.onload = function(){ alert('window loaded!'); } $(document).ready(function(){ alert('document ready!'); }); </script>