<p style="color:#F00;">||-------hello Ajax!-------||</p> <p>这里是ajax加载的html代码</p> <script> setTimeout(function(){ alert('jQuery html方法可以执行HTML片段自带的javascript'); }, 1000); </script>