1
我從https://github.com/angular-ui/ui-sortable下載了最新的源代碼。但是我無法使用它。我打開了demo.html,但它被打破了。不能使用角度可分類
更新時間: 當我在控制檯中打開demo.html:
Navigated to https://www.google.com.au/search?q=if+demo+break+angular-ui+sortable&oq=if+…-ui+sortable&aqs=chrome..69i57.18815j0j4&sourceid=chrome&es_sm=93&ie=UTF-8
Navigated to http://stackoverflow.com/questions/24624807/angular-ui-sortable-not-working-properly
ds.serving-sys.com/BurstingCachedScripts//Ad_2_49_3_0/ebStdBannerEx.js:82 Setting 'XMLHttpRequest.withCredentials' for synchronous requests is deprecated.
Navigated to https://www.google.com.au/search?q=if+demo+break+angular-ui+sortable&oq=if+…-ui+sortable&aqs=chrome..69i57.18815j0j4&sourceid=chrome&es_sm=93&ie=UTF-8
Navigated to file:///C:/xampp/htdocs/web/plugins/ui-sortable-src0.13.4/demo/demo.html
這裏是我包括
<meta charset='utf-8'>
<script src="js/third-party/jquery-1.9.1.min.js"></script>
<script src="js/third-party/angular.min.js"></script>
<script src="js/third-party/angular-cookies.min.js"></script>
<script src="js/jquery.scrollTo.js" type="text/javascript"></script>
<script src="js/third-party/keypress.js"></script>
<script src="js/third-party/ng-upload.min.js"></script>
<script src="js/third-party/jquery-ui.min.js"></script>
<script src="js/third-party/jquery-ui-1.10.2.custom.min.js"></script>
<script src="js/third-party/ui-calendar.js"></script>
<script src="js/third-party/date.js"></script>
<script src="js/third-party/fullcalendar.min.js"></script>
<script src="js/third-party/moment.min.js"></script>
<script src="js/third-party/bootbox.min.js"></script>
<script type="text/javascript" src="plugins/ui-sortable-src0.13.4/src/sortable.js"></script>
我的應用程序
angular.module('app.ReportCtrl',['ui.sortable']).controller('ReportCtrl', function($http, $rootScope, $scope)
和元素的文件
<ul ui-sortable ng-model="selectedColumns">
<li ng-repeat="col in selectedColumns">{{col.displayName}}</li>
</ul>
當我不使用ui-sortable時,可以顯示列表 但是當使用ui-sortable時,列表將不會顯示。
我做錯了什麼?
你的控制檯是否有錯誤? –