2012-12-14 81 views
0

與此相關的question我收到此錯誤:非常簡單的jQuery導致錯誤

Uncaught SyntaxError: Unexpected token ILLEGAL

與此代碼:

<!-- Le javascript 
    ================================================== --> 
    <!-- Placed at the end of the document so the pages load faster --> 
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> 
    <script src="js/highcharts.js"></script> 
    <script src="js/inspiritas.js"></script> 
    <script src="bootstrap/js/bootstrap-dropdown.js"></script> 
    <script src="bootstrap/js/bootstrap-collapse.js"></script> 
    <script> 
    $(document).ready(function() { 
     $(document).on('click', 'a.expand', function(e) { 
      e.preventDefault(); 
      $(this).find('ul').slideToggle(); 
     }); 
    });​ 
    </script> 

的錯誤是在最後}); 我沒有看到任何錯誤,刪除js文件沒有幫助。

+1

該塊沒有任何語法錯誤。我懷疑這個錯誤出現在你引用的'