2013-01-22 39 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>