2013-01-22 38 views

回答

0

解决这个问题的方法是环绕Spinner in another tag

<h1>This is the title</h1> 

<script> 
    function updateByAjax() { 
    $h1 = $('h1').append('<span class='ajax-wait'><i class="icon-spinner icon-spin"></i></span>') 
    $.get('/url', function() { 
     $h1.html(resp.html).find('.ajax-wait').text('').remove() 
    }) 
    } 
</script>