【发布时间】:2015-07-20 07:18:24
【问题描述】:
我从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 时,列表不会显示。
我是不是做错了什么?
【问题讨论】:
-
您的控制台是否有任何错误?
标签: javascript jquery angularjs jquery-ui